[BUG]val() ignores the value attribute?

[BUG]val() ignores the value attribute?


I noticed val() ignores the 'value' attribute on html elements.
If i have this markup:
< div id="test" value="45" >< / div >
$('#test').val() - will return empty string
$('#test').attr() - will return '45'
If i set a value using $('#test').val(88)
$('#test').val() - will return '88'
$('#test').attr() - will return '45'
So val() has nothing to do with the 'value' attribute, although in the
documentation for val() i see: Get the content of the value attribute
of the first matched element.
Doesn't this qualify as a bug?