Closed Bug 159857 Opened 22 years ago Closed 5 years ago

xbl doesn't create <html:td> correctly

Categories

(Core :: XBL, defect)

defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: doronr, Unassigned)

References

Details

xbl seems to have a problem creating td under certain circumstances:

 <binding id="ruby">
 <content>
   <html:table border="1">
     <html:tbody>	  
       <html:tr>	  		
         <html:td>a</html:td><children includes="rtc"/>
       </html:tr>	  					
     </html:tbody>	  			
   </html:table>
   </children>
  </content>
 </binding>

  <binding id="rtc">
    <content>
      <children/>
    </content>
  </binding>  
  
  <binding id="rt">
    <content>
      <html:td><children/></html:td>
    </content>
  </binding>   

all the html:td's created by the rt binding don't behave like td's (no border
for example).

example at: http://www.nexgenmedia.net/ruby/bug/file.html
Blocks: xbl_ruby
forgot the html:

<ruby>
  <rtc>
    <rt>Month</rt>
    <rt>Day</rt>
  </rtc>
</ruby>
Reconfirmed using FizzillaCFM/2002072203 by observing lack of borders on right
two table cells in testcase. Setting All/All.
Keywords: testcase
OS: Windows 2000 → All
Hardware: PC → All
happens in xul:grid as well
You have a stray </children>... in the ruby binding...
The reason is that without the stray </children>, the xbl binding won't apply
(jag said it was on purpose so).

What seems to happen is that the html:tr has (in dom inspector) a rtc childnode,
which then has a rt chilenode which then has the html:td anonymous content,
which doesn't get added to the html:table dom.

I tried using javascript to move the html:td nodes but since they are anonymous
content, I can't get to them from the html:table.
That should be <children/> though, not </children>. 

Anyway, this is probably not working because I missed patching something in the thousands of lines of special-case table frame construction code. Sigh.
This bug needs a new testcase. It should be attached to the bug.
QA Contact: ian → xbl
Assignee: hyatt → nobody

XBL is now disabled in Firefox (Bug 1583314) and is in the process of being removed from Gecko (Bug 1566221), so closing bugs requesting changes to its implementation as wontfix.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.