w3c-validation

W3C validator can't process RDF/XML

两盒软妹~` 提交于 2019-12-11 13:33:06
问题 I'm trying to describe a very basic metro train station map with stops and times. This RDF to Turtle converter can parse my XML, but the W3C validator throws: Error: Your document does not contain any RDF statement. I can't figure out why my document isn't valid because it isn't some very special use case? My blank nodes are described as Resource , according to the specification. Or do I have to use nodeID for multiple blank nodes? <?xml version="1.0"?> <rdf:RDF xmlns:rdf="http://w3.org/1999

Is there a way to stop ASP.NET CreateUserWizard from adding tables into HTML?

不羁岁月 提交于 2019-12-11 12:42:48
问题 How can I remove the html <table> elements that are generated by the CreateUserWizard to validate the login page against HTML 5? I've managed to get my entire site to validate to HTML 5, except for 3 errors caused by the CreateUserWizard in my login page. This is the code that causes the errors, which I can't seem to stop from being generated: <table id="ContentPlaceHolder1_CreateUserWizard1"> <tr style="height:100%;"> <td><table cellspacing="0" cellpadding="0" style="height:100%;width:100%

Rails default CSRF Meta Tags not validating

时间秒杀一切 提交于 2019-12-11 06:50:08
问题 I've just validated a new site a new site that i've written using Rails 3 with the W3C markup validation and i'm getting errors about the CSRF tags that rails generates. "Bad value csrf-param for attribute name on element meta: Keyword csrf-param is not registered." <meta name="csrf-param" content="authenticity_token"/> AND "Bad value csrf-token for attribute name on element meta: Keyword csrf-token is not registered." <meta name="csrf-token" content="{token}"/> I have my DOCTYPE set to <

Attribute data-ls not allowed on element svg at this point. how to rectify it

一笑奈何 提交于 2019-12-11 03:59:26
问题 While checking my site with w3cvalidator it shows the this error Attribute data-ls not allowed on svg element at this point and End tag svg did not match the name of the current open element (use). here is a sample code i used. <svg class="ls-l" style="top:320px;left:30%;white-space: nowrap;" data-ls="offsetxin:-15; offsetyin:10; delayin:6854; offsetxout:-15; offsetyout:10; durationout:500; showuntil:1000; easingout:easeInOutQuart; scalexin:0; scaleyin:0; scalexout:0; scaleyout:0;" width="50"

Can we use <a> directly in the body, or it should always in any block level tag? See example (XHTML)

天大地大妈咪最大 提交于 2019-12-11 02:49:30
问题 Which is right? This: <h2>heading 2</h2> <p><a href="#" target="_blank" title="Opens in a new window">link 1</a></p> <h2>heading 2 </h2> <p><a href="#" target="_blank" title="Opens in a new window">link 2</a></p> <h2>heading 2 </h2> <p><a href="#" target="_blank" title="Opens in a new window">link 3</a></p> <h2>heading 2 </h2> <p><a href="#" target="_blank" title="Opens in a new window">link 4</a></p> or this: <h2>heading 2</h2> <a href="#" target="_blank" title="Opens in a new window">link 1

How to solve this error : Bad value original-source for attribute rel

岁酱吖の 提交于 2019-12-11 02:44:10
问题 I am trying to validation my site with w3c but i am getting error: Bad value original-source for attribute rel on element link: The string original-source is not a registered keyword. For: <link rel="original-source" href="http://themarketmogul.com/" /> Can any one suggest me what i can do for this error. 回答1: The rel attribute specifies type of the link. There are limited set of values this attribute (the type) accepts. Specification defines them in section 4.8.4 Link types: alternate -

Making a URL W3C valid AND work in Ajax Request

落爺英雄遲暮 提交于 2019-12-11 01:17:19
问题 I have a generic function that returns URLs. (It's a plugin function that returns URLs to resources [images, stylesheets] within a plugin). I use GET parameters in those URLs. If I want to use these URLs within a HTML page, to pass W3C validation, I need to mask ampersands as & /plugin.php?plugin=xyz&resource=stylesheet&.... but, if I want to use the URL as the "url" parameter for a AJAX call, the ampersand is not interpreted correctly, screwing up my calls. Can I do something get & work in

NET-enabling start-tag requires SHORTTAG YES

老子叫甜甜 提交于 2019-12-10 20:34:10
问题 Trying to get close a W3C validation of the output from my aspx (VB.NET 2008 Framework 3) I get this warning: Warning Line 6, Column 76: NET-enabling start-tag requires SHORTTAG YES </title><meta http-equiv="content-type" content="text/html; charset=utf-8" /> The sequence can be interpreted in at least two different ways, depending on the DOCTYPE of the document. For HTML 4.01 Strict, the '/' terminates the tag '). However, since many browsers don't interpret it this way, even in the presence

W3C validator complaining about duplicate div

做~自己de王妃 提交于 2019-12-10 16:44:34
问题 I use a clear div in several places in a single HTML file, a la: #clear { clear: both; } usage: <div id="clear"> </div> But W3C's HTML5 validator appears to be complaining that each subsequent use after the initial use is a "duplicate ID": Why isn't this valid? How are you supposed to use clear divs multiple times on a single page if it isn't technically valid? Note: this is mostly just an informative question, my HTML renders fine on all modern browsers, and given that this is the only error

Can a table row have no cells?

时间秒杀一切 提交于 2019-12-10 16:36:45
问题 I'm using HTML tables to create a timetable. Each row represents half hour, and the cells can span multiple rows by using rowspan . Sometimes I have empty tr elements, because all the slots are taken by cells from previous rows. In that case, the HTML validator complains: Row [N] of a row group established by a tbody element has no cells beginning on it. Sure, I could remove those empty tr and reduce the rowspan value of the expanded cells. But then the rowspan value would no longer