- From: Karl Fritsche <karl.fritsche@cocomore.com>
- Date: Wed, 8 May 2013 14:01:07 +0200
- To: <public-multilingualweb-lt-tests@w3.org>
- Message-ID: <518A3E83.9030404@cocomore.com>
Hi, I think the complete test suite issn't yet updated to the defaults (Elements within Text and Translate). But nevertheless good point you are bringing up. I think every phrasing-element should be considered. So the expected output should be withinText="yes" even for the script in the head. For the example below also /html/body[1]/p[1] withinText="no" should be changed to /html/body[1]/p[1] withinText="yes" Cheers Karl On 08.05.2013 12:53, Mârcis Pinnis wrote: > > Hi Felix, > > We have a question regarding one of the TestSuite examples > (withintext4htmloutput.txt) after applying the HTML Defaults. > > The <script> element according to > http://www.w3.org/TR/2012/CR-html5-20121217/dom.html#phrasing-content-1 is > a phrasing content element. The default value for such elements is > „yes” for elements within text in HTML. > > The same page also says: „Phrasing contentis the text of the document, > as well as elements that mark up that text at the intra-paragraph > level” (by not explicitly specifying that intra-paragraph level means > the content within <body> ... which could be or could not be > understood or misunderstood by this explanation). > > The OLD HTML5 Defaults page says something different: All phrasing > elements <http://www.w3.org/TR/html5/dom.html#phrasing-content-1> > (...) which are 'within text'. (by also not specifying what „/within > text/” means). > > So ... the question is: > > Should the <script> element within the <head> element have a default > elements within text value of „yes”? Or ... do the defaults refer only > to the content within the <body> tag? > > If the value should be “yes”, then the test suite example is wrong. > > If the value should be “no”, maybe it is worth considering to stress > that the defaults refer just to the content within <body> (or ... > according to the out-dated Wiki page something that is referred to by > “/within text/”). > > Some more details are in the e-mail below. > > Best regards, > > Mârcis ;o) > > *From:*Pçteris Ňikiforovs > *Sent:* Wednesday, May 08, 2013 1:25 PM > *To:* Mârcis Pinnis > *Cc:* Andis Lagzdiňđ; Artűrs Vasiďevskis > *Subject:* LT-Web withintext4htmloutput.txt > > elementswithintext\html\withintext4htmloutput.txt has not been updated > after introducing HTML5 defaults into the standard. > > <!DOCTYPEhtml> > > <html> > > <head> > > <scripttype="application/its+xml"> > > <its:rules xmlns:its="http://www.w3.org/2005/11/its" > xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> > > <its:param name="withinparam">copyright</its:param> > > <its:withinTextRule selector="//h:span|//h:img|//h:em" withinText="yes"/> > > <its:withinTextRule selector="//h:cite" withinText="nested"/> > > <its:withinTextRule selector="//h:section/h:span" withinText="no"/> > > <its:withinTextRule selector="//h:p[@id=$withinparam]" withinText="yes"/> > > </its:rules> > > </script> > > <metacharset=utf-8> > > <title>Appaloosa</title> > > </head> > > <body> > > <section> > > <spanitemref="keyword">horse</span> > > <spanitemref="keyword">appaloosa</span> > > </section> > > <p> > > The Appaloosa > > <cite> > > The name comes from "Palouse horse" in reference to the Palouse River > in Northern Idaho. > > </cite> > > are rugged horses originally breed by the > > <spanitemref="keyword">Nez-Perce</span> > > tribe in the US Northwest. > > </p> > > <p> > > They are often characterized by their spotted coats, as shown here: > > <imgsrc="appaloosa.png"alt="Appaloosa horses"/> > > </p> > > <!--footer--> > > <pid="copyright"> > > Copyright: > > <em>Zebulon Inc.</em> > > </p> > > </body> > > </html> > > /html withinText="no" > > /html/head[1] withinText="no" > > */html/head[1]/script[1] withinText="no"* > > /html/head[1]/script[1]/@type > > /html/head[1]/meta[1] withinText="no" > > /html/head[1]/meta[1]/@charset > > /html/head[1]/title[1] withinText="no" > > /html/body[1] withinText="no" > > /html/body[1]/section[1] withinText="no" > > /html/body[1]/section[1]/span[1] withinText="no" > > /html/body[1]/section[1]/span[1]/@itemref > > /html/body[1]/section[1]/span[2] withinText="no" > > /html/body[1]/section[1]/span[2]/@itemref > > /html/body[1]/p[1] withinText="no" > > /html/body[1]/p[1]/cite[1] withinText="nested" > > /html/body[1]/p[1]/span[1] withinText="yes" > > /html/body[1]/p[1]/span[1]/@itemref > > /html/body[1]/p[2] withinText="no" > > /html/body[1]/p[2]/img[1] withinText="yes" > > /html/body[1]/p[2]/img[1]/@alt > > /html/body[1]/p[2]/img[1]/@src > > /html/body[1]/p[3] withinText="yes" > > /html/body[1]/p[3]/@id > > /html/body[1]/p[3]/em[1] withinText="yes" > > No global or local rules are defined for the <script> element and it > should have the default value. In HTML5, all „phasing content” > elements have the default value of withinText="yes". The <script> > element is one of them. > > This line > > */html/head[1]/script[1] withinText="no"* > > should be changed to > > */html/head[1]/script[1] withinText="yes"* >
Received on Wednesday, 8 May 2013 12:01:48 UTC