Make WordPress Core

Opened 6 years ago

Closed 6 years ago

#20401 closed defect (bug) (fixed)

OBJECT tag is self-nestable

Reported by: coffee2code Owned by: nacin
Milestone: 3.5 Priority: normal
Severity: trivial Version: 3.3.1
Component: Formatting Keywords: has-patch
Focuses: Cc:


As #6870 advocated for the q tag, likewise the object tag is self-nestable.

As proof of its validity, the W3C's HTML4 documentation for object includes an example of the self-nesting of that tag . Down a bit from this link , their example is:

<!-- First, try the Python applet -->
<OBJECT title="The Earth as seen from space" 
                    <!-- Else, try the MPEG video -->
  <OBJECT data="TheEarth.mpeg" type="application/mpeg">
                    <!-- Else, try the GIF image -->
    <OBJECT data="TheEarth.gif" type="image/gif">
                    <!-- Else render the text -->
     The <STRONG>Earth</STRONG> as seen from space.

And another example they used for the param tag (scroll back a few lines from that link target to see the example):

<OBJECT id="obj1">
   <PARAM name="param1">
   <OBJECT id="obj2">
      <PARAM name="param2">

A unit test patch will be forthcoming.

Attachments (1)

20401.diff (721 bytes) - added by coffee2code 6 years ago.
Aforementioned path.

Download all attachments as: .zip

Change History (4)

6 years ago

Aforementioned path.

#1 @coffee2code
6 years ago

  • Keywords needs-unit-tests removed

Unit test included as part of [UT661].

#2 @coffee2code
6 years ago

  • Milestone changed from Awaiting Review to 3.5

Might as well include this much more minor patch in 3.5 if #1597 looks like it'll go in.

#3 @nacin
6 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [21250]:

HTML object tags are self-nestable. props coffee2code. fixes #20401.

Note: See TracTickets for help on using tickets.