[ 
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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to