- From: Jukka K. Korpela <jkorpela@cs.tut.fi>
- Date: Fri, 08 Nov 2013 16:16:30 +0200
- To: www-html@w3.org
2013-11-08 15:48, Philip Taylor wrote: > Unless I am misunderstanding the whole concept of conformance, > it refers (in this context) to the HTML of which the page is > composed; modifications to the DOM do not affect that HTML, > and therefore a page that was conformant before the script > ran would still be conformant afterwards, would it not ? My understanding is just the opposite: conformance is defined for documents, not just for serializations. For example, a document that inserts, with JavaScript, a title element inside a body element is just as nonconforming as one with the markup <body><title>foo</title></body>. Regarding my example that assigns an onpaste event handler, the question really is whether it counts as an attribute. HTML5 terminology is somewhat confusing, but presumably "attribute" means both content attributes and IDL attributes in the requirement "Authors must not use elements, attributes, or attribute values that are not permitted by this specification or other applicable specifications" at 3.2.1 Semantics (http://www.w3.org/TR/html5/dom.html#semantics-0), a somewhat odd place for a requirement that is (mostly) syntactic. But does document.body.onpaste mean using an IDL attribute? What distinguishes this from a simple property assignment? Yucca
Received on Friday, 8 November 2013 14:17:00 UTC