Closed
Bug 2017
Opened 26 years ago
Closed 26 years ago
Crash when displaying
Categories
(Core :: CSS Parsing and Computation, defect, P2)
Tracking
()
VERIFIED
FIXED
People
(Reporter: troy, Assigned: peterl-retired)
References
()
Details
Your latest attribute API changes have affected the display of XML
documents. We're hitting an assert when trying to display books.xml,
which is part of the developer demo.
You probably don't have that, so here's some simple XML that causes an
assert.
<?xml-stylesheet type="text/css" href="bach.css"?>
<ARTICLE xmlns:html="http://www.w3.org/TR/REC-HTML40">
<HEADLINE>Fredrick the Great meets Bach</HEADLINE>
<AUTHOR>Johann Nikolaus Forkel</AUTHOR>
<PARA>
One evening, just as he was getting his
<INSTRUMENT>flute</INSTRUMENT> ready and his
<html:img SRC="house.gif"/>musicians were assembled, an officer brought him
a list of
the strangers who had arrived.
</PARA>
</ARTICLE>
---- begin bach.css ---
XML { background-color: white}
INSTRUMENT { display: inline }
ARTICLE, HEADLINE, AUTHOR, PARA { display: block }
---- end bach.css ----
Here's the stack trace
NTDLL! 77f76148()
nsDebug::Assertion(const char * 0x00688220, const char * 0x006881f8, const char
* 0x006881c8, int 1830) line 95 + 13 bytes
nsGenericContainerElement::SetAttribute(int -1, nsIAtom * 0x00f0fe00 {"html"},
const nsString & {"http://www.w3.org/TR/REC-html40"}, int 0) line 1830 + 32
bytes
nsXMLElement::SetAttribute(nsXMLElement * const 0x00fa761c, int -1, nsIAtom *
0x00f0fe00 {"html"}, const nsString & {"http://www.w3.org/TR/REC-html40"}, int
0) line 200
nsXMLContentSink::AddAttributes(const nsIParserNode & {...}, nsIContent *
0x00fa761c, int 0) line 438
nsXMLContentSink::OpenContainer(nsXMLContentSink * const 0x00f10680, const
nsIParserNode & {...}) line 586 + 20 bytes
CWellFormedDTD::HandleToken(CWellFormedDTD * const 0x00f826c0, CToken *
0x00f80360, nsIParser * 0x00f161b0) line 811 + 22 bytes
nsParser::BuildModel() line 765 + 20 bytes
nsParser::ResumeParse() line 723 + 11 bytes
nsParser::EnableParser(int 1) line 596
nsXMLContentSink::ResumeParsing(nsXMLContentSink * const 0x00f10680) line 1208
nsDoneLoadingStyle(nsIUnicharStreamLoader * 0x00f833f0, nsString & {"
BookSet {
display: block;
}
Book {
float: left;
display: block;
width: 300px;
margin-bottom: "}, void * 0x00f78230, unsigned int 0) line 848
nsUnicharStreamLoader::OnStopBinding(nsUnicharStreamLoader * const 0x00f833f4,
nsIURL * 0x00f16980, unsigned int 0, const unsigned short * 0x00fa68a0) line 148
+ 31 bytes
OnStopBindingProxyEvent::HandleEvent(OnStopBindingProxyEvent * const 0x00fa7100)
line 575
StreamListenerProxyEvent::HandlePLEvent(PLEvent * 0x00fa7104) line 453 + 12
bytes
PL_HandleEvent(PLEvent * 0x00fa7104) line 395 + 10 bytes
PL_ProcessPendingEvents(PLEventQueue * 0x00eb9810) line 357 + 9 bytes
_md_EventReceiverProc(HWND__ * 0x00020256, unsigned int 49382, unsigned int 0,
long 15439888) line 675 + 9 bytes
USER32! 77e71250()
00eb9810()
Assignee | ||
Updated•26 years ago
|
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 1•26 years ago
|
||
Eeek. Needed to support the 'xmlns' pseudo namespace.
Updated•26 years ago
|
QA Contact: 4137
Summary: Crash when displaying → Crash when displaying
Comment 2•26 years ago
|
||
Christopher can you please verify using the supplied sample code
Verified fixed using both books.xml and the sample code provided here. Feb-03-99
build, NT 4 SP 4.
You need to log in
before you can comment on or make changes to this bug.
Description
•