[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.webtools] Re: JavaScript validation errors/warns I cannot solve
|
Thanks for your answer.
"event cannot be resolved"
Line:
<body onmousedown="event.preventDefault()"> <!-- disables image dragging
in Firefox -->
The first error, about event being undefined, I'm not sure about.
Where's that defined?
I don't know where, but it works. I found this trick somewhere and it effectively disabled image dragging in FF, which was problematic feature on touchscreens.
"style cannot be resolved or is not a field"
"options cannot be resolved or is not a field"
For the last two errors, Document#getElementById() isn't properly
supported yet by the JavaScript validation inside of web pages. The
returned "type" is supposed to vary based on which kind of element
that ID was associated, but we won't have that HTML DOM integration
until WTP 3.2 at the earliest.
I suspected that. So I cannot cast the getElementById() result, mask the warnings, anything to wipe them out?
Vlada