Closed Bug 272012 Opened 20 years ago Closed 20 years ago

AUTO NAME displays as AUTO NAME instead of substitution

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: carolyn, Assigned: bugzilla)

References

()

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0

When I view the link above in Firefox, the first text paragraph starts with
"Welcome to AUTO NAME" but when I view it in Internet Explorer it says "Welcome
to Phoenixville Hospital".


Reproducible: Always
Steps to Reproduce:
1. with Firefox, view http://www.phoenixvillehospital.com/
2. read the beginning of the first paragraph
3. repeat using Internet Explorer

Actual Results:  
With Firefox it says "Welcome to AUTO NAME" instead of "Welcome to Phoenixville
Hospital"


Expected Results:  
It should say "Welcome to Phoenixville Hospital"
That's becuase on the non-standard Javascript at the bottom of the page :

if(document.getElementById("facilityname")){
	document.getElementById("facilityname").innerText = "Phoenixville Hospital";
}

.innerText is an IE only dom property, , see
<http://www.mozilla.org/docs/web-developer/upgrade_2.html>. You should be able
to use the w3c dom property .textContent instead.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
(In reply to comment #1) 
> .innerText is an IE only dom property, , see
> <http://www.mozilla.org/docs/web-developer/upgrade_2.html>. You should be able
> to use the w3c dom property .textContent instead.

Not my web page.  Just happened to see it.  I have forwarded the information to
the webmaster of the site.





v
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.