W3C home > Mailing lists > Public > www-html@w3.org > November 2013

Re: Conformance of documents using IDL attributes outside the spec

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 08 Nov 2013 16:16:30 +0200
Message-ID: <527CF23E.6030909@cs.tut.fi>
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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:26 UTC