You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by "Johannes Koch (JIRA)" <xe...@xml.apache.org> on 2009/10/28 23:55:59 UTC

[jira] Created: (XERCESJ-1402) HTMLCollectionImpl does not contain enough elements

HTMLCollectionImpl does not contain enough elements 
----------------------------------------------------

                 Key: XERCESJ-1402
                 URL: https://issues.apache.org/jira/browse/XERCESJ-1402
             Project: Xerces2-J
          Issue Type: Bug
          Components: DOM (HTML)
    Affects Versions: 2.9.1
            Reporter: Johannes Koch


An org.apache.html.dom.HTMLCollectionImpl for a FORM element's form controls does not contain all form controls because the recursion stops at an element found to be a form control. So form controls within a FIELDSET element are not found.

<FIELDSET>
  <LABEL ...></LABEL> <INPUT ...>
</FIELDSET>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1402) HTMLCollectionImpl does not contain enough elements

Posted by "Michael Glavassevich (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789983#action_12789983 ] 

Michael Glavassevich commented on XERCESJ-1402:
-----------------------------------------------

Xerces does not implement DOM Level 2 HTML. Notice that the package name [1] for the Java interfaces [2] is completely different than the DOM Level 1 HTML interfaces (which Xerces implements).

[1] org.w3c.dom.html2 vs. org.w3c.dom.html
[2] http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/java-binding.html


> HTMLCollectionImpl does not contain enough elements 
> ----------------------------------------------------
>
>                 Key: XERCESJ-1402
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1402
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (HTML)
>    Affects Versions: 2.9.1
>            Reporter: Johannes Koch
>         Attachments: HTMLCollectionImplTest.java
>
>
> An org.apache.html.dom.HTMLCollectionImpl for a FORM element's form controls does not contain all form controls because the recursion stops at an element found to be a form control. So form controls within a FIELDSET element are not found.
> <FIELDSET>
>   <LABEL ...></LABEL> <INPUT ...>
> </FIELDSET>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Updated: (XERCESJ-1402) HTMLCollectionImpl does not contain enough elements

Posted by "Johannes Koch (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESJ-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Johannes Koch updated XERCESJ-1402:
-----------------------------------

    Attachment: HTMLCollectionImplTest.java

> HTMLCollectionImpl does not contain enough elements 
> ----------------------------------------------------
>
>                 Key: XERCESJ-1402
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1402
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (HTML)
>    Affects Versions: 2.9.1
>            Reporter: Johannes Koch
>         Attachments: HTMLCollectionImplTest.java
>
>
> An org.apache.html.dom.HTMLCollectionImpl for a FORM element's form controls does not contain all form controls because the recursion stops at an element found to be a form control. So form controls within a FIELDSET element are not found.
> <FIELDSET>
>   <LABEL ...></LABEL> <INPUT ...>
> </FIELDSET>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1402) HTMLCollectionImpl does not contain enough elements

Posted by "Johannes Koch (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12771361#action_12771361 ] 

Johannes Koch commented on XERCESJ-1402:
----------------------------------------

Another way to look at this issue is that fieldsets and labels probably are not controls as per the HTML 4.01 spec (<http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#h-17.2.1>). The DOM2 spec for HTMLFormElement (<http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html#ID-40002357>) specifies:

elements of type HTMLCollection, readonly
    Returns a collection of all form control elements in the form.

So org.apache.html.dom.HTMLFieldSetElementImpl and org.apache.html.dom.HTMLLabelElementImpl should not implement org.apache.html.dom.HTMLFormControl.

> HTMLCollectionImpl does not contain enough elements 
> ----------------------------------------------------
>
>                 Key: XERCESJ-1402
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1402
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (HTML)
>    Affects Versions: 2.9.1
>            Reporter: Johannes Koch
>         Attachments: HTMLCollectionImplTest.java
>
>
> An org.apache.html.dom.HTMLCollectionImpl for a FORM element's form controls does not contain all form controls because the recursion stops at an element found to be a form control. So form controls within a FIELDSET element are not found.
> <FIELDSET>
>   <LABEL ...></LABEL> <INPUT ...>
> </FIELDSET>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org


[jira] Commented: (XERCESJ-1402) HTMLCollectionImpl does not contain enough elements

Posted by "Johannes Koch (JIRA)" <xe...@xml.apache.org>.
    [ https://issues.apache.org/jira/browse/XERCESJ-1402?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12790045#action_12790045 ] 

Johannes Koch commented on XERCESJ-1402:
----------------------------------------

Oh yes, I didn't notice this. However, then I quote DOM Level 1 HTML (<http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-html.html#ID-40002357>):

elements of type HTMLCollection, readonly
    Returns a collection of all control elements in the form.

Does this make fieldset and label elements control elements in a form?

> HTMLCollectionImpl does not contain enough elements 
> ----------------------------------------------------
>
>                 Key: XERCESJ-1402
>                 URL: https://issues.apache.org/jira/browse/XERCESJ-1402
>             Project: Xerces2-J
>          Issue Type: Bug
>          Components: DOM (HTML)
>    Affects Versions: 2.9.1
>            Reporter: Johannes Koch
>         Attachments: HTMLCollectionImplTest.java
>
>
> An org.apache.html.dom.HTMLCollectionImpl for a FORM element's form controls does not contain all form controls because the recursion stops at an element found to be a form control. So form controls within a FIELDSET element are not found.
> <FIELDSET>
>   <LABEL ...></LABEL> <INPUT ...>
> </FIELDSET>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: j-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: j-dev-help@xerces.apache.org