Closed nostrademons closed 9 years ago
The WHATWG spec does not agree with the W3C spec, and I think these tests aim to conform with WHATWG. By my reading the test accurately reflects the current WHTAWG spec.
As an aside, it's probably worth prominently mentioning somewhere (a readme, maybe) which spec these tests aim to, well, test.
@nolanw AFAICT, there's not really any de-facto agreement as to what to do with Ruby, whether browsers are going to implement it (and whether the WHATWG spec will then follow).
I'd asked in #51 which version of the spec I should be following for , and was told that the W3C version has been implemented in Webkit and Gecko and was underway in Blink, and the WhatWG version would presumably be updated to match shortly. This is a one-off exception from the general guidelines that the WhatWG spec is more current.
My main concern is that there are 9 other html5lib ruby tests that follow the W3C version, and so it seems like we should at least be consistent within the same file.
Oh, sorry, I've obviously not been paying enough attention to what's been implemented. :)
As far as I can tell, re: your question above, the expectation should be:
<html html>
<html head>
<html body>
<html ruby>
"a"
<html rtc>
"b"
<html rp>
So yes, I agree the test is wrong. (This is also the tree a UA would produce with no Ruby support!)
Input is "a", expected output is:
However, the W3C spec text for