Closed Bug 82543 Opened 23 years ago Closed 23 years ago

Composer alters textarea element

Categories

(Core :: DOM: Editor, defect, P2)

All
Windows 98
defect

Tracking

()

VERIFIED DUPLICATE of bug 73605
mozilla0.9.2

People

(Reporter: rubydoo123, Assigned: Brade)

References

Details

(Whiteboard: [html])

original code:
<textarea name="textarea test" rows=6 cols=30>TEXTAREA element</textarea>

code genreated by Composer:
<textarea defaultvalue="TEXTAREA element" value="TEXTAREA element" 
name="textarea test" rows="6" cols="30"></textarea>

from section 17.7 of the 4.01 DTD:
<!ELEMENT TEXTAREA - - (#PCDATA)       -- multi-line text field -->
<!ATTLIST TEXTAREA
     %attrs;                              -- %coreattrs, %i18n, %events --
     name        CDATA          #IMPLIED
     rows        NUMBER         #REQUIRED
     cols        NUMBER         #REQUIRED
     disabled    (disabled)     #IMPLIED  -- unavailable in this context --
     readonly    (readonly)     #IMPLIED
     tabindex    NUMBER         #IMPLIED  -- position in tabbing order --
     accesskey   %Character;    #IMPLIED  -- accessibility key character --
     onfocus     %Script;       #IMPLIED  -- the element got the focus --
     onblur      %Script;       #IMPLIED  -- the element lost the focus --
     onselect    %Script;       #IMPLIED  -- some text was selected --
     onchange    %Script;       #IMPLIED  -- the element value was changed --
     >

1. it strips the content of the textarea
2. it adds an illegal attribute 'defaultvalue'
3. it adds an illegal attribute 'value'
Severity: normal → major
Keywords: correctness
Priority: -- → P2
Whiteboard: [html]
Target Milestone: --- → mozilla0.9.2
Depends on: 17003


*** This bug has been marked as a duplicate of 73605 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.