You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (Commented) (JIRA)" <ji...@apache.org> on 2011/10/17 23:37:10 UTC

[jira] [Commented] (TAP5-171) Filter out attributes with default value (from DTD) when parsing templates

    [ https://issues.apache.org/jira/browse/TAP5-171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13129230#comment-13129230 ] 

Howard M. Lewis Ship commented on TAP5-171:
-------------------------------------------

I'm very confused as to why I never see this?  Under what JDK/platform/etc. does this manifest?
                
> 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: tapestry5-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.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira