| Summary: | Incorrect error message: "Invalid location of tag (div)." when DIV in OBJECT | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [WebTools] WTP Source Editing | Reporter: | jzaruba <jaroslav.zaruba> | ||||||
| Component: | wst.html | Assignee: | Rakesh <rakes123> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | Nitin Dahyabhai <thatnitind> | ||||||
| Severity: | minor | ||||||||
| Priority: | P3 | CC: | nsand.dev, rakes123, thatnitind | ||||||
| Version: | unspecified | Flags: | nsand.dev:
review+
|
||||||
| Target Milestone: | 3.2.2 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Windows Vista | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
jzaruba
Created attachment 174295 [details] patch Although , it is not mentioned(or i missed?) in this link that div can be inside Object, i took this link as reference http://www.comptechdoc.org/independent/web/html/terms/html-div-tag.html. Created patch, assuming div can be inside Object . (In reply to comment #1) > Created an attachment (id=174295) [details] > patch > > Although , it is not mentioned(or i missed?) in this link that div can be > inside Object, i took this link as reference > http://www.comptechdoc.org/independent/web/html/terms/html-div-tag.html. > Created patch, assuming div can be inside Object . This is what makes me believe DIV is allowed in OBJECT: http://www.w3.org/TR/REC-html40/struct/objects.html#edef-OBJECT OBJECT: <!ELEMENT OBJECT - - (PARAM | %flow;)* -- generic embedded object --> where %flow; is: <!ENTITY % flow "%block; | %inline;"> where %block; is: <!ENTITY % block "P | %heading; | %list; | %preformatted; | DL | DIV | NOSCRIPT | BLOCKQUOTE | FORM | HR | TABLE | FIELDSET | ADDRESS"> So, if my understanding is right there's whole lot of elements allowed within OBJECT. (In reply to comment #3) > So, if my understanding is right there's whole lot of elements allowed within > OBJECT. I agree with jzaruba's assessment. There a lot of elements that are missing from our content model for OBJECT, which mostly seems to be elements under the %block entity. I'd prefer if we could account for all of them instead of just DIV. Thanks jzaruba and Rakesh. Created attachment 174300 [details]
patch
taking care of all block elements now.
Second patch looks great, Rakesh. Thanks. Code checked in. |