Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
47 views

How to set up a local W3C HTML validator server and use it in Rails testing

I would like to incorporate W3C VNU validator for HTMLs to my Rails app in the test environment. I use the w3c_validators gem for Rails as the wrapper for the W3C validator. In default, it uses the ...
Masa Sakano's user avatar
  • 2,205
1 vote
1 answer
66 views

HTML error of multiple attribute for input type="text" with Rails datagrid gem

In the popular Rails gem datagrid, specifying a range filter (for integers) produces a HTML like this: <form class="datagrid-form artists_grid" id="new_artists_grid" action=&...
Masa Sakano's user avatar
  • 2,205
1 vote
0 answers
55 views

Is Angular's emulated shadow DOM html standard conform and why does nobody care?

Angular uses shadow DOM to encapsule styles for it's components: In Angular, a component's styles can be encapsulated within the component's host element so that they don't affect the rest of the ...
meles's user avatar
  • 426
1 vote
1 answer
191 views

Convert read only fields for accessibility purposes

I'm converting an application to be compliant with the W3 accessibility guidelines. I need to have the screen reader to read the title and the value together, only using <p> tags. This website ...
dariamanskaia's user avatar
1 vote
0 answers
52 views

Using search element inside header element

The W3 Validator gives an error when I use a search element inside a header element. But the spec page shows an example with the search element in the header element. I tried to validate the example, ...
Angelic Automata's user avatar
1 vote
2 answers
54 views

Why can frontend frameworks can create custom attributes but I'm expected to prepend "data-" to mine

Why are frontend frameworks able to create custom attributes on html elements like Vue for instance <div v-for="..."> Html validators complain if I make up my own. <div something&...
Nick's user avatar
  • 1,219
0 votes
1 answer
35 views

How do you proceed html markup validation in your svelte app?

Is there any efficient way to check entire app(every component and so on) for html markup errors?
Mero's user avatar
  • 733
0 votes
0 answers
25 views

how to change tag a href in wordpress for validator w3

i my website is thai language, and link in webpage is thai i check page in https://validator.w3.org/ it's show error "Bad value for attribute href on element a: Percentage ("%") is not ...
Amika Boonthima's user avatar
2 votes
0 answers
73 views

Machine-readable metadata autogenerated by Creative Commons (CC) not W3C-compliant

I added a CC license to my website using the Choose a License tool hosted by CC: <a rel="license" target="_blank" href="http://creativecommons.org/licenses/by/4.0/">...
rupumped's user avatar
  • 226
6 votes
1 answer
379 views

Rails button_to fails with W3C validator

Outputs of a Ruby-on-Rails button_to have started failing in W3C validation recently, with the returned message of: An input element with a type attribute whose value is hidden must not have an ...
Masa Sakano's user avatar
  • 2,205
0 votes
0 answers
40 views

w3c validator rejects custom icons despite specifications

Edit : Following this publication https://github.com/w3c/css-validator/issues/380 the bug is fixed https://github.com/w3c/css-validator/commit/eca30bb7e985a9027e01d310b1b9e5588ae4b2b9 the at counter-...
kevgiraultdev's user avatar
14 votes
1 answer
886 views

Why is /🌈 an invalid path when /a🌈 is valid?

I’m trying to understand why certain HTML attributes are failing W3C validation. I encountered this in a real codebase, but here’s a minimal reproduction: <!DOCTYPE html><html lang="en&...
ændrük's user avatar
  • 790
0 votes
1 answer
136 views

W3 CSS Validation error for font-face definition

I have following code in my CSS file, which I think is perfectly valid, however W3C-CSS validator shows error as shown in the picture, any idea on how to fix this issue, @font-face { font-family: '...
mahen3d's user avatar
  • 7,566
-1 votes
1 answer
661 views

Validating Vue syntax with W3C Validator

I'm doing this course where I can freely select a framework to build a simple application. However, we are to validate the HTML with the W3C validator. I have no idea how. The W3C validator does not ...
Jannemannen's user avatar
-1 votes
1 answer
132 views

Trouble with Unclosed element form

I can´t figure out why my form tag doesn´t recognise it´s close, any ideas ? I have tried changing the divs a couple of times but it just messes up the whole form. Code: https://codeshare.io/2pypdD
Cesar's user avatar
  • 1
-2 votes
1 answer
162 views

HTML 5 Validation Service

I am trying to check HTML 5 files for validity and have found the W3C validator. However I have found that this validator accepts grossly wrong HTML documents like this one: <!DOCTYPE html> <...
Harry Berry's user avatar
8 votes
1 answer
1k views

Can a css variable name start with a number?

I want to know if it is valid to define a css variable that starts with a number like this, :root { --1space: 32px; } this works just fine with Chrome, however that code is not being validated by ...
Ahmet Sali's user avatar
-2 votes
1 answer
1k views

Wrong validation on element <br> in <ul> <li> elements

I have this situation: ... <ul> <li>Text<br/>Text</li><br /> <li>Text<br/>Text</li> </ul> ... Looking for w3c validation I get: Error: ...
Marcello Impastato's user avatar
0 votes
1 answer
136 views

How to send files via post request in python similar to curl? (W3C validator)

I am trying to send a local html file from my computer to the https://validator.nu/ from W3C to validate it. I found this curl command which worked perfectly fine in terminal: curl -H "Content-...
John's user avatar
  • 7
0 votes
1 answer
931 views

Property scrollbar-width doesn't exist : none error

I want to hide the scrollbar in Firefox Browser so i used the following in css: scrollbar-width: none; when i validate the css file in W3C css validator it shows me the following error: Property ...
void's user avatar
  • 23
0 votes
0 answers
186 views

JAVA_HOME setting doesn't show up in Workspace Settings to complete W3C Validation Extension Installation

I followed all the steps to install the W3C Validation Extension. I have the JAVA_HOME variable in my Environment Variables with value of C:\Program Files\Java\jdk-15.0.1 to which I appended ;%...
Elena Vangeli's user avatar
0 votes
1 answer
468 views

CSS Validator error = Value Error : background 100% is not a color-stop value )

I am pretty new to programming and I imported a code snippet to my CSS to get a hovering effect over links. When I am pushing the code through W3C CSS Validator I get a single error which is from this ...
Alex's user avatar
  • 3
0 votes
0 answers
480 views

Why does this GET for favicon.ico fire and fail if my HTML5 passes validation?

I have the following HTML page as a test: <!DOCTYPE html> <html lang="en"> <head> <title>Best Title Ever!</title> <meta charset="utf-...
raddevus's user avatar
  • 8,922
3 votes
1 answer
862 views

Can I use duplicate IDs on multiple <template> fragments?

Why does HTML5 validation fail when having duplicate element IDs but on different <template>. I'm planning to use only one template at a time so the actual DOM ID won't be duplicated. something ...
stoic little's user avatar
5 votes
1 answer
286 views

Why doesn't the W3C RDF validator replace the URI using the full namespace?

I tried validating a very simple manually-written RDF online, using the W3C RDF Validator. To my surprise, it correctly resolved the URIs from the rdf namespace, but not from a different namespace (...
Rumi P.'s user avatar
  • 1,717
0 votes
1 answer
857 views

How to fix HTML validation errors - on AMP website

I have created an AMP website - https://full-moon-report.com/ It has no AMP errors but it has a lot of HTML errors when I check it in the HTML validator: https://validator.w3.org/nu/?doc=https%3A%2F%...
alex toader's user avatar
  • 2,388
0 votes
0 answers
121 views

ASP.NET MVC bundles causing errors in W3C HTML validation

I do use ASP.NET MVC 5 and I include my JavaScript files with bundles. ASP.NET then generates a file name with a hash value at the end of the file. Between the filename and the hash value is a '=' ...
Ali's user avatar
  • 480
0 votes
1 answer
762 views

W3C validator: Bad value for attribute href on element a: Missing scheme

I have the piece of code from below, but I get the error which says "Bad value for attribute href on element a: Missing scheme." when I validate the code. How can I fix this? <a class=&...
andy's user avatar
  • 61
-2 votes
1 answer
159 views

Start tag body seen but an element of the same type was already open

My website seems good, have original design,responsive, compatible with every browser but the validator doesnt like my website.So, I want to pass its silly exam.It turned honour issue for me. I ...
Faruk rıza's user avatar
0 votes
1 answer
164 views

How to solve w3 validation error bad value?

The W3C validation report me this error: Error: Bad value //fonts.googleapis.com/css?family=PT+Sans:400,700|PT+Serif:400,700 for attribute href on element link: Illegal character in query: | is ...
Elena Voulgari's user avatar
4 votes
3 answers
7k views

W3C Validation Failed, Illegal character in path segment: space is not allowed

<img src="webpage photos/alcazar.jpg" alt="Alcazar Palace"> The error shown by validator: Bad value webpage photos/alcazar.jpg for attribute src on element img: Illegal character in path ...
Dravenzo's user avatar
  • 129
1 vote
0 answers
125 views

How to fix a validation error within a <script> tag

I have an HTML page that's giving a validation error. Here's the section of the code producing the error: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/...
user3138025's user avatar
3 votes
1 answer
192 views

Clarification regarding validity of using data-URIs in CSS url()

I'm writing a pre-processing component (in PHP) which, in certain contexts, rewrites external image file requests in CSS such as: background-image: url('/my-folder/my-image.png'); as CSS-inlined ...
Rounin's user avatar
  • 28.9k
1 vote
1 answer
1k views

Attribute width and height not allowed on element symbol at this point

Should width and height attribute not be used on SVG's symbol? These are being used in MDN example https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol How to solve this validation error?...
Jitendra Vyas's user avatar
0 votes
2 answers
64 views

For document served with Refresh HTTP header, why does w3 validator get empty source code?

I'm trying to check a website via w3 validator, but it always fails with this error: End of file seen without seeing a doctype first. Expected <!DOCTYPE html>. It's seems that it fails ...
Alex Sh.'s user avatar
  • 609
1 vote
2 answers
3k views

W3C HTML validation errors: “Stray end tag </head>” and “Start tag <body> seen but an element of the same type was already open” [duplicate]

Trying to build a website, when I validated it by W3C validator it gave 2 errors: Error: Stray end tag head. From line 22, column 1; to line 22, column 7. Error: Start tag body seen but an element of ...
user avatar
0 votes
1 answer
365 views

HTML Table validation error when combining rowspan and colspan on <th> element

My code seams to work fine but trying to validate it at https://validator.w3.org/nu/#file It gives me the error: Table column 2 established by element th has no cells beginning in it. If I remove ...
F Wi's user avatar
  • 139
-3 votes
2 answers
2k views

Error passing W3.org Validator: Illegal character in scheme data

I am trying to pass a file path with src (<video src="C:\Users\exampleuser\example.mp4"></video>) through W3C's validator. However, I am given the error: Bad value C:\Users\exampleuser\...
Lordology's user avatar
0 votes
1 answer
374 views

W3c validation more than 20 redirects errors?

I am trying to validate my website on w3 validator and I am getting this error message called IO Error: Maximum redirects (20) exceeded. I don't know what is causing this error. Please help me. Bellow ...
Nitin Johnson's user avatar
0 votes
0 answers
199 views

W3C markup validation: Attribute 'ng-transition' not allowed on element 'style' at this point [duplicate]

I am using Angular universal and getting the error Attribute 'ng-transition' not allowed on element 'style' at this point.
Rashid Husain's user avatar
1 vote
2 answers
871 views

Contact Form 7 : No p element in scope but a p end tag seen

I am using contact form 7 plugin on my website. Plugin shortcode generated spaces, new lines, and p tags, which w3 validator say there is not a right. how I can change the template or fix it with ...
Gor Poghosyan's user avatar
0 votes
1 answer
876 views

Vue js and W3C HTML Validator

I am currently working on a SPA using Vue, but I can't validate it through the W3C's HTML Validator. How can I validate it? I have heard of adding "data-" just before the Vue syntax, but it does not ...
Juan Solozabal Salaberria's user avatar
2 votes
1 answer
804 views

Is a protocol (eg. http or https) required for a URL to be valid?

Recently I came across a lot of code from analytics plugins where they specify the URL as //fonts.googleapis.com or //www.google.com. Basically it starts with two forward slashes and then the domain ...
Vivek V Dwivedi's user avatar
0 votes
1 answer
277 views

Where do the DigestValues in the References of a XML Signature come from?

I have to Sign an XML file and have the Signature and the file inside the same XML. The Problem is, that I have to generate DigestValues in the References, but I am not sure where they come from. I ...
Daniel Bla's user avatar
2 votes
2 answers
745 views

Chrome 76 native lazy loading attribute returns error in w3c

I just implemented the new native lazy loading of chrome 76 in some images. It consists simply in adding the attribute loading="lazy" to images. ex: <img src="#url" width="380" height="285" alt="...
grcoder's user avatar
  • 333
-1 votes
1 answer
930 views

Stray start tag td && Stray end tag td. w3c validation

My HTML is as as below. <div class="plan-row"> <div class="plan-cell en">100MB</div> <div class="plan-cell en">4GB</div> <div class="plan-cell hide-sm en"&...
Mahdi Bashirpour's user avatar
0 votes
1 answer
303 views

Parse error from W3C Validator on CSS3 Responsive font titles

I'm getting an error Value Error : font-size Parse Error )/(1600-300))) from https://jigsaw.w3.org/css-validator/validator on every line of code below. Code is working, CSSlint doesn't report an ...
bobsya's user avatar
  • 1
1 vote
1 answer
57 views

Not sure how to adapt ancient image switcher code from using name="foo" to id="foo"

About 19 years ago, I needed a script that changes images using the onmouseover event. The script used name="foo" which, of course, can no longer be supported by the <img> tag. I've literally ...
mig81's user avatar
  • 129
0 votes
1 answer
60 views

Error Validatin Wordpress Feed RSS on Mailchimp

Mailchimp doesn't find my feed rss. This is the error using the validating tool This feed does not validate. line 407, column 19: XML parsing error: <unknown>:407:19: not well-formed (...
BigBlack's user avatar
  • 163
0 votes
2 answers
91 views

How to exclude multiple domains using W3C's Checklink

The checklink command supports an --exclude parameter, which accepts a regex. Example: checklink --exclude foo\.com/.* http://example.com Alas, example.com links to multiple sites, many of which use ...
Steve Almond's user avatar

1
2 3 4 5
19