robnyman / domassistant

Automatically exported from code.google.com/p/domassistant
1 stars 0 forks source link

getStyle() doesn't work in IE7 #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Here's the code: 

<div id="foo" ></div>

<script type="text/javascript" src="/js/DOMAssistant.2.5.7.js"></script>
<script type="text/javascript">
  var style = $('foo').getStyle('background-color');
</script>

What is the expected output? What do you see instead?

Expected: IE will not spit out an error alert saying object doesn't support
property or method. Instead, IE does do this. Firefox handles it just fine,
including returning the style as expected. 

What version of the product are you using? On what operating system?

Using most recent version, on most common OS (WinXP), with second most
common browser (IE7). So far, not impressed.

Original issue reported on code.google.com by jayboyd on 14 Jan 2008 at 8:56

GoogleCodeExporter commented 9 years ago
Oops! I see problem was using DOMAssistant and not DOMAssistantComplete. This 
was not
entirely clear from documentation; I assumed unless specifying something like
DOMAssistantCore that I was getting the full set, which is rather minimal and 
spare
compared to other popular libraries. 

Original comment by jayboyd on 14 Jan 2008 at 9:19

GoogleCodeExporter commented 9 years ago
jayboyd,

The idea is for those who want the core to only reference elements, they have 
that
functionality in DOMAssistant.js. Othewise, you need to include respective 
module for
those methods, or, as you say, the complete file.

Original comment by robny...@gmail.com on 17 Jan 2008 at 12:47