[ 
https://issues.apache.org/jira/browse/TAP5-171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Massimo Lusetti updated TAP5-171:
---------------------------------

    Affects Version/s: 5.2

> Filter out attributes with default value (from DTD) when parsing templates
> --------------------------------------------------------------------------
>
>                 Key: TAP5-171
>                 URL: https://issues.apache.org/jira/browse/TAP5-171
>             Project: Tapestry 5
>          Issue Type: Improvement
>          Components: tapestry-core
>    Affects Versions: 5.2, 5.0.18
>         Environment: Sun JDK 1.5
>            Reporter: Folke Behrens
>            Priority: Minor
>              Labels: tapestr5-review-for-closing
>             Fix For: 5.3
>
>         Attachments: TAP5-171 5.2.4.patch, Test.html, 
> attributes2-dtd-default.patch
>
>
> Consider testing for org.xml.sax.ext.Attributes2 and use 
> Attributes2.isSpecified(int) to check if the attribute is really specified or 
> just a default declaration.
> With this you can e.g. test if <a  shape="rect" > is really set. Test for 
> "http://xml.org/sax/features/use-attributes2"; or just use "instanceof":
> if (attributes instanceof Attributes2) {
>     if (( (Attributes2)attributes ).isSpecified(i)) {
>         // do something
>     }
> }

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to