...

View Full Version : eclipse undefined attributes html



abhinavatul
06-05-2012, 10:34 AM
in eclipse jee helios,
getting the following warnings
Undefined attribute name(draggable)
Undefined attribute name(ondragover)
Undefined attribute name(ondragstart)
Undefined attribute name(ondrop)

for the following html source

<!DOCTYPE HTML>
<html>
<head>
<script type="text/javascript">
function allowDrop(ev)
{
ev.preventDefault();
}

function drag(ev)
{
ev.dataTransfer.setData("Text",ev.target.id);
}

function drop(ev)
{
var data=ev.dataTransfer.getData("Text");
ev.target.appendChild(document.getElementById(data));
ev.preventDefault();
}
</script>
</head>
<body>

<div id="div1" ondrop="drop(event)"
ondragover="allowDrop(event)"></div>
<img id="drag1" src="img_logo.gif" draggable="true"
ondragstart="drag(event)" width="336" height="69" />

</body>
</html>
please help

VIPStephan
06-05-2012, 12:00 PM
What’s there to help? These attributes are not valid HTML. As far as I could find out from a quick search they were invented by Microsoft so they might work in Internet Explorer only but they are definitely not standard HTML as defined by the W3C.

abhinavatul
06-05-2012, 12:21 PM
thanks for the quick reply but the above source has been taken from w3schools :(



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum