w3c-validation

W3C validation for <ui-select>

吃可爱长大的小学妹 提交于 2019-11-28 03:24:22
问题 I am using angular-ui-select within a website where the styled select fields are configured with an own tag named ui-select . This works great, but doing a W3C validation leads to this error: Element ui-select not allowed as child of element div in this context. (Suppressing further errors from this subtree.) Here's an example code: <!doctype html> <html lang="en"> <head><title>x</title></head> <body> <div> <ui-select></ui-select> </div> </body></html> I understand that <ui-select> is not

Hosting W3 XML Schema files locally

三世轮回 提交于 2019-11-28 02:04:15
I work at a company where we have our own XML language with its own set of schemas that validate against the W3 schema . For business reasons, I need to host these files internally instead of relying on the web hosted versions. I have little experience with XML schemas and am wondering what exactly this means. Is it as simple as copying and pasting the page source into my own file and pointing our other schemas there? Do I need to worry about the namespace documents as well? Any help here is appreciated. Thanks. kjhughes To host external XSDs, including any from W3C, locally: Identify external

w3c markup validator ampersand (&) error

眉间皱痕 提交于 2019-11-27 15:41:56
Is there any workaround for the w3c validation error for an & present in urls or some other place in HTML markup? It says: & did not start a character reference. (& probably should have been escaped as & .) The ampersand in my case is a part of a url for gravatar thumbnail. This is the problematic part of a url: c91588793296e2?s=50&d=http%3A%2F% . for each & sign you got write & in your example it would be: c91588793296e2?s=50&d=http%3A%2F% Use & for literal ampersands, even in URLs. http://htmlhelp.com/tools/validator/problems.html#amp Replace with & should be: c91588793296e2?s=50&d=http%3A

“Attribute name not allowed on element div at this point”

浪子不回头ぞ 提交于 2019-11-27 13:56:17
I am getting a W3V validator error that I can't understand: Line 31, Column 61: Attribute name not allowed on element div at this point. That is this row: <div name="message" class="jGrowl bottom-right errorGrowl"></div> Full HTML: <!DOCTYPE html> <html> <head> <title>jGrowl</title> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.0/jquery.min.js"></script> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.9/jquery-ui.min.js"></script> <script type="text

Should I care about W3C validation?

空扰寡人 提交于 2019-11-27 13:29:41
I'm learning AngularJS and I found a simple code like this one: <!DOCTYPE html> <html> <head> <meta charset='utf-8'> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.js"></script> </head> <body ng-app ng-init="name = 'World'"> <h1>Hello, {{name}}!</h1> </body> </html> does not pass W3C validation test, mainly because there are non standard attributes ( ng-app , ng-init ). The question is: should I care about W3C validation of my application? Should I abandon AngularJS? S.Magnaschi You could use the data- html5 attribute which is standard and as far as I know works the

Why can't a <button> element contain a <div>?

こ雲淡風輕ζ 提交于 2019-11-27 09:25:00
My company is building a website and we had some problems with a JavaScript library not replacing something. We decided to throw our HTML in to the W3C validator and it informed us it's illegal to have a <div> tag inside a <button> tag. <button class="button" type="submit"> <div class="buttonNormalLargeLeft"><!--#--></div> <div class="buttonNormalLargeCenter">Search Flights</div> <div class="buttonNormalLargeRight"><!--#--></div> </button> Results in: Line 287, Column 46: Element div not allowed as child of element button in this context. (Suppressing further errors from this subtree.) Edit:

What elements can a span tag contain in HTML5?

雨燕双飞 提交于 2019-11-27 07:58:37
So I have been a CLI or Cron developer in PHP for most my career and now I am learning why I did not like UI work in school ;) I am dealing with HTML5 validation here and I am not finding an answer to a question that is for curosity. I ran the W3C HTML5 validation on my home page and I got several errors around a div being within a <span> and that is not allowed. I tried changing all <div> within spans to a <p> but recieve pretty much the same error. http://www.w3schools.com/html5/tag_span.asp does not explicitly say what elements are allowed within a <span> and neither does the error from the

How do I escape an ampersand in a javascript string so that the page will validate strict?

丶灬走出姿态 提交于 2019-11-27 07:06:01
I am trying to pass a dataString to to an ajax call using JQuery. In the call, I construct the get parameters and then send them to the php page on the receiving end. The trouble is that the data string has ampersands in them and the HTML strict validator is chocking on it. Here is the code: $(document).ready(function(){ $("input#email").focus(); $('#login_submit').submit(function(){ var username = $('input#email').val(); var password = $('input#password').val(); var remember = $('input#remember').attr("checked"); var dataString = "email="+username+"&password="+password+"&remember="+remember;

w3c html validation error - Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections

给你一囗甜甜゛ 提交于 2019-11-27 04:44:45
I am getting a warning when I try to validate my page in http://validator.w3.org : Section lacks heading. Consider using h2-h6 elements to add identifying headings to all sections. My code is as below : <section id="slider-wrapper-new"> <div class="slider-container-new"> // some code.. </div> </section> How can I remove this error ? Do I compulsory need to add h1 - h6 tags inside section heading ? Either: Add a heading ( h1 , ..., h6 ) tag to your section element. Replace your section element with a div element. Ignore the warning. The message you're seeing is a non-normative usage

Google fonts URL break HTML5 Validation on w3.org

孤街醉人 提交于 2019-11-27 02:38:53
I load 3 fonts in different sizes using this HTML tag: <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Open+Sans:400,600,300,800,700,400italic|PT+Serif:400,400italic|Bree+Serif"> Till ~1/2 weeks ago this was supported by w3.org validator for HTML5; now it gives this error: Line 14, Column 163: Bad value http://fonts.googleapis.com/css?family=Open+Sans:400,600,300,800,700,400italic|PT+Serif:400,400italic|Bree+Serif for attribute href on element link: Illegal character in query: not a URL code point. What's the things the W3C Markup Validator does not like now