aspalliance.com - Site uses proprietary IE-only DOM syntax

RESOLVED INCOMPLETE

Status

Tech Evangelism Graveyard
English US
RESOLVED INCOMPLETE
16 years ago
3 years ago

People

(Reporter: Phil Schwartau, Unassigned)

Tracking

Details

(URL)

(Reporter)

Description

16 years ago
Reported by aikens@xtra.co.nz

> In Mozilla 1.0 when I go to a page like 
> http://aspalliance.com/stevesmith/articles/ViewArticle.aspx?id=32 and try to
> use the links to change pages, nothing happens. The browser just sits there.



Reason: this site uses proprietary, IE-only syntax:

<form name="ViewArticle1:_ctl0"
        id="ViewArticle1__ctl0" >

<script>
function __doPostBack(eventTarget, eventArgument)
{
  var theform = document.ViewArticle1__ctl0; <<< MOZILLA ERRORS HERE

                etc.
}
</script>


For |document.ViewArticle1__ctl0| to resolve in a W3C-standard browser, the 
string "ViewArticle1__ctl0" should be the NAME of the <form> element, NOT its id 
as they have put it. (Note the name they do use for the <form> element has a 
colon inserted; it is a different string...)

Their code does work in IE. I do know that IE puts every HTML id into the global 
JavaScript namespace, which means that |window.ViewArticle1__ctl0| will resolve 
successfully. Yet apparently IE also resolves this as 
|document.ViewArticle1__ctl0|. Just load the given site in IE and try this 
JavaScript URL; it returns "true" !!!

  javascript: alert(window.ViewArticle1__ctl0 === document.ViewArticle1__ctl0);


However, this is not W3C-standard syntax. In Mozilla, each side of that equation 
is undefined. Just load the site and try:

  javascript: alert(window.ViewArticle1__ctl0);
  javascript: alert(document.ViewArticle1__ctl0);
*** Bug 154072 has been marked as a duplicate of this bug. ***

Updated

15 years ago
Summary: Site uses proprietary IE-only DOM syntax → aspalliance.com - Site uses proprietary IE-only DOM syntax

Comment 2

15 years ago
tech evang june 2003 reorg
Assignee: doron → english-us
QA Contact: zach → english-us

Comment 3

7 years ago
INCOMPLETE due to lack of activity since the end of 2009.

If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself.

Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.
Status: NEW → RESOLVED
Last Resolved: 7 years ago
Resolution: --- → INCOMPLETE
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.