[Bug 19641] example "This canvas element has a couple of checkboxes" don`t work.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=19641

--- Comment #4 from Jay Munro <jaymunro@microsoft.com> ---
It didn't work in testing on Firefox, Chrome, and IE. There were actually two
errors. The label[0] was causing an error since the checkboxes didn't have a
label. The label element that wrapped the checkbox element contained the text,
so removing the label[0] portion from the measureText and fillText statements 
and passing the id of the labels allowed it to be displayed correctly. 

Errors: 
In FireFox: 
TypeError: element.label is undefined
var metrics = context.measureText(element.label[0].textContent);

In IE: 
SCRIPT5007: Unable to get property '0' of undefined or null reference 
test1.html, line 19 character 5

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Thursday, 10 January 2013 03:40:44 UTC