[ http://issues.apache.org/jira/browse/XALANJ-2121?page=comments#action_65700 ] Brian Minchau commented on XALANJ-2121: ---------------------------------------
According to the HTML spec, here are the 12 valueless HTML attributes, each followed by a list of elements that they can appear on: checked -> input compact -> dl ol ul dir menu declare -> object defer -> script disabled -> select input optgroup option button textarea ismap -> input img multiple -> select nohref -> area noresize -> frame noshade -> hr nowrap -> th td readonly -> input textarea selected -> option A code inspection of ToHTMLStream.java shows that not all of these are recognized as valueless in the Trie created to hold information about HTML elements and their attributes. The following are not correctly recognized as valueless: compact -> dl ol ul dir menu noresize -> frame noshade -> hr nowrap -> th td readonly -> textarea One of those not recognized is the nowrap on a <td> element, as noted by Dave within this issue, but we should clean them all up together. > Need correct HTML serialization of special attributes, even with copy-of > ------------------------------------------------------------------------ > > Key: XALANJ-2121 > URL: http://issues.apache.org/jira/browse/XALANJ-2121 > Project: XalanJ2 > Type: Bug > Components: Serialization > Reporter: David Marston > Priority: Minor > > The situation illustrated in test case attribset17... > <Input Type="checkbox"> > <xsl:attribute name="CHECKED">CHECKED</xsl:attribute> > </Input> > should be emitted as > <Input Type="checkbox" CHECKED> > and there is an output test (34, IIRC) that shows the same thing for LREs. We > don't (yet) have a test for xsl:copy-of, which failed > for me on <td nowrap>. I think Brian Minchau will advise about whether > xsl:copy or xsl:element use-attribute-sets="foo" or any other case is a > separate code path that needs separate testing. > Notice that in the example above, we also should emit the element as an > empty/unclosed element, in addition to reducing the CHECKED attribute. > Brian M. and Henry Z. think that the set of attributes requiring this > treatment is: checked, compact, declare, defer, disabled, > ismap, multiple, nohref, noresize, noshade, nowrap, readonly, selected. > Also revisit XALANJ-296, which is about XSLTC. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
