Closed Bug 443231 Opened 16 years ago Closed 10 years ago

allconnect.com - Iterating over the document.styleSheets array the last sheet's .href returns null

Categories

(Tech Evangelism Graveyard :: English US, defect)

defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: john.bryant, Unassigned)

References

()

Details

(Keywords: regression)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0

Error: stylesheet.href is null
Source File: http://www.allconnect.com/shared/js/ac/acgfxapi.js
Line: 1138

The style sheet looks like it is there but the href returns null. At first we thought it was an array length issue but when you alert the style sheet it looks like it is there. There are only five style sheets but there are six in the array.

Reproducible: Always

Steps to Reproduce:
1. Follow the url given above
2. once loaded resize the window and you will see the canvas renderer as they are suppose to so this bug happens on first load but not on subsequent window size changes or clicking on the tabs for the other services.


Actual Results:  
When the null pointer is thrown the page stops rendering the canvases which is how we build the menus and headers. Try the following URL in FireFox 2.x to see our "white labeled" version for HomePoints; http://www.allconnect.com/shopping/ssc-homeservices-trashRemoval/trashRemoval.html?zip=30005&referrerID=31672&

Now you can see how the canvases should respond.

Expected Results:  
described above or use FF 2.x

More urls to try;

ALLCONNECT DEFAULT:
http://www.allconnect.com/shopping/ssc-homeservices-trashRemoval/trashRemoval.html?zip=30005&referrerID=31290&

RELIANT ENERGY:
http://www.allconnect.com/shopping/ssc-homeservices-trashRemoval/trashRemoval.html?zip=30005&referrerID=31570&

SMUD:
http://www.allconnect.com/shopping/ssc-homeservices-trashRemoval/trashRemoval.html?zip=30005&referrerID=26420&

HOMEPOINTS:
http://www.allconnect.com/shopping/ssc-homeservices-trashRemoval/trashRemoval.html?zip=30005&referrerID=31672&
Regression range for this is
http://bonsai.mozilla.org/cvsquery.cgi?module=PhoenixTinderbox&date=explicit&mindate=1193168220&maxdate=1193177579
-> Bug 397427.
Component: General → Style System (CSS)
Keywords: regression
Product: Firefox → Core
QA Contact: general → style-system
Version: unspecified → Trunk
.href is null for inline stylesheets per spec.  The page in question has five external stylesheets, and one inline stylesheet (the last one).  So you get the effect described in comment 0.

What happened here is that we fixed bug 74281 as part of the fix for bug 397427.  And the site happened to be relying on the old (buggy) behavior instead of being written to the DOM Style specification...
Assignee: nobody → english-us
Status: UNCONFIRMED → NEW
Component: Style System (CSS) → English US
Ever confirmed: true
Product: Core → Tech Evangelism
QA Contact: style-system → english-us
Version: Trunk → unspecified
Hardware: PC → All
Summary: Iterating over the document.styleSheets array the last sheet's .href returns null → allconnect.com - Iterating over the document.styleSheets array the last sheet's .href returns null
Site has been updated, closing.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.