Closed
Bug 612720
Opened 15 years ago
Closed 11 years ago
The default scripting language must be specified for an intrinsic event
Categories
(Bugzilla :: Bugzilla-General, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: LpSolit, Unassigned)
References
()
Details
The HTML4 spec says that "As HTML does not rely on a specific scripting language, document authors must explicitly tell user agents the language of each script. [...] Documents that do not specify default scripting language information and that contain elements that specify an intrinsic event script are incorrect."
But we have some pages (such as show_bug.cgi) having elements with such intrisic event scripts:
<body onload="" class="localhost-bugzilla32">
<form action="buglist.cgi" method="get" onsubmit="if (this.quicksearch.value == '') { alert('Please enter one
or more search terms first.'); return false; } return true;">
This means we must declare:
<META http-equiv="Content-Script-Type" content="text/javascript">
in <head></head>.
| Reporter | ||
Comment 1•11 years ago
|
||
This was mandatory in HTML4, but is now optional in HTML5. It automatically defaults to text/javascript.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•