This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 229186

Summary: <video> element should allow "muted" attribute
Product: web Reporter: _ gtzabari <gtzabari>
Component: HTML EditorAssignee: Milutin Kristofic <mkristofic>
Status: REOPENED ---    
Severity: normal    
Priority: P3    
Version: 7.4   
Hardware: PC   
OS: Windows 7   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ gtzabari 2013-04-30 03:33:27 UTC
Product Version: NetBeans IDE 7.3 (Build 201302132200)
Java: 1.7.0_21; Java HotSpot(TM) 64-Bit Server VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Windows 7 version 6.1 running on amd64; Cp1252; en_CA (nb)
User directory: C:\Users\Gili\AppData\Roaming\NetBeans\7.3
Cache directory: C:\Users\Gili\AppData\Local\NetBeans\Cache\7.3

Netbeans flags <video muted="true"> as an error, but the HTML5 standard indicates this attribute is valid: http://www.w3.org/TR/html5/embedded-content-0.html#attr-media-muted
Comment 1 Vladimir Riha 2013-05-23 09:06:06 UTC
reproducible

Product Version: NetBeans IDE Dev (Build web-main-10598-on-20130523)
Java: 1.7.0_21; Java HotSpot(TM) Client VM 23.21-b01
Runtime: Java(TM) SE Runtime Environment 1.7.0_21-b11
System: Linux version 3.2.0-43-generic-pae running on i386; UTF-8; en_US (nb
Comment 2 Marek Fukala 2013-06-24 13:28:41 UTC
Isn't the boolean attribute supposed to be used in such form: <video muted></video>? This works well, resp. the validator won't complain.
Comment 3 _ gtzabari 2013-06-24 16:17:25 UTC
You're right.

Can we improve the error message? Instead of:

  Bad value "true" for attribute "muted" on element "video".

perhaps it should say:

  Boolean attribute "muted" may have a value of "muted" or no value at all. See http://www.w3.org/TR/html5/infrastructure.html#boolean-attributes for more information.
Comment 4 _ gtzabari 2013-06-24 16:17:44 UTC
(reopening as enhancement)