- From: poot <cvsmail@w3.org>
- Date: Fri, 11 Sep 2009 09:20:25 +0900 (JST)
- To: public-html-diffs@w3.org
hixie: New text for XPath hack. (whatwg r3800) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2968&r2=1.2969&f=h http://html5.org/tools/web-apps-tracker?from=3799&to=3800 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.2968 retrieving revision 1.2969 diff -u -d -r1.2968 -r1.2969 --- Overview.html 10 Sep 2009 23:49:12 -0000 1.2968 +++ Overview.html 11 Sep 2009 00:19:56 -0000 1.2969 @@ -174,7 +174,7 @@ <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2> <!--ZZZ:--> <!--<h2 class="no-num no-toc">W3C Working Draft 25 August 2009</h2>--> - <h2 class="no-num no-toc" id="editor-s-draft-10-september-2009">Editor's Draft 10 September 2009</h2> + <h2 class="no-num no-toc" id="editor-s-draft-11-september-2009">Editor's Draft 11 September 2009</h2> <!--:ZZZ--> <dl><!-- ZZZ: update the month/day (twice), (un)comment out--><!-- <dt>This Version:</dt> @@ -273,7 +273,7 @@ track. <!--ZZZ:--> <!--This specification is the 25 August 2009 Working Draft.--> - This specification is the 10 September 2009 Editor's Draft. + This specification is the 11 September 2009 Editor's Draft. <!--:ZZZ--> </p><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- relationship to other work (required) --><p>This specification is also being produced by the <a href="http://www.whatwg.org/">WHATWG</a>. The two specifications are identical from the table of contents onwards.</p><!-- UNDER NO CIRCUMSTANCES IS THE FOLLOWING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- UNDER NO CIRCUMSTANCES IS THE PRECEDING PARAGRAPH TO BE REMOVED OR EDITED WITHOUT TALKING TO IAN FIRST --><!-- context and rationale (required) --><p>This specification is intended to replace (be a new version of) @@ -8252,29 +8252,18 @@ in this specification (e.g. as part of the <code title="">document.evaluate()</code> API) are affected as follows:</p> - <p>In addition to the cases where a name expression would match a - node per XPath 1.0, a name expression must evaluate to matching a - node when all the following conditions are also met:</p> - - <ul class="brief"><li>The name expression has no namespace.</li> - <li>The name expression has local name that is a match for <var title="">local</var>.</li> - <li>The expression is being tested against an element node.</li> - <li>The element has local name <var title="">local</var>.</li> - <li>The element is in the <a href="#html-namespace-0">HTML namespace</a>.</li> - <li>The element's document is an <a href="#html-documents" title="HTML documents">HTML document</a>.</li> - </ul><p>Irrespective of the requirements defined in XPath 1.0, a name - expression must not evaluate to matching a node when the following - conditions are all met:</p> + <p>A node test consisting of a <a href="http://www.w3.org/TR/REC-xml-names/#NT-QName">QName</a> + with no prefix (i.e. that matches the <a href="http://www.w3.org/TR/REC-xml-names/#NT-UnprefixedName">UnprefixedName</a> + production) must be treated as if it instead had the namespace URI + equal to <a href="#html-namespace-0">HTML namespace</a> when the node is an element + whose document is an <a href="#html-documents" title="HTML documents">HTML + document</a>. <a href="#refsXPATH10">[XPATH10]</a> <a href="#refsXMLNS">[XMLNS]</a></p> - <ul class="brief"><li>The name expression has no namespace.</li> - <li>The expression is being tested against an element node.</li> - <li>The element is in no namespace.</li> - <li>The element's document is an <a href="#html-documents" title="HTML documents">HTML document</a>.</li> - </ul><p class="note">These requirements are a <a href="#willful-violation">willful - violation</a> of the XPath 1.0 specification, motivated by desire - to have implementations be compatible with legacy content while - still supporting the changes that this specification introduces to - HTML regarding which namespace is used for HTML elements. <a href="#refsXPATH10">[XPATH10]</a></p> <!-- note: version matters for + <p class="note">This requirement is a <a href="#willful-violation">willful violation</a> + of the XPath 1.0 specification, motivated by desire to have + implementations be compatible with legacy content while still + supporting the changes that this specification introduces to HTML + regarding which namespace is used for HTML elements. <a href="#refsXPATH10">[XPATH10]</a></p> <!-- note: version matters for this ref --> <hr><p id="dom-based-xslt-1.0-processors">XSLT 1.0 processors outputting
Received on Friday, 11 September 2009 00:21:02 UTC