Bugs 67887, 67893, 67882, 68185, 73160, 77923. Added support for XHTML base href and target attributes, meta http-equiv and link href. Fixed the blank page bug when xml-stylesheet PI did not contain href attribute. Fixed getElementById() to not match XHTML name attribute. This fix also includes some minor cleanup. r=nisheeth, sr=vidur.
git-svn-id: svn://10.0.0.236/trunk@93488 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1075,13 +1075,12 @@ nsHTMLDocument::InternalInsertStyleSheetAt(nsIStyleSheet* aSheet, PRInt32 aIndex
|
||||
mStyleSheets.InsertElementAt(aSheet, aIndex + 1); // offset one for the attr style sheet
|
||||
}
|
||||
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDocument::GetBaseURL(nsIURI*& aURL) const
|
||||
{
|
||||
if (nsnull != mBaseURL) {
|
||||
NS_ADDREF(mBaseURL);
|
||||
aURL = mBaseURL;
|
||||
if (mDocumentBaseURL) {
|
||||
aURL = mDocumentBaseURL.get();
|
||||
NS_ADDREF(aURL);
|
||||
}
|
||||
else {
|
||||
aURL = GetDocumentURL();
|
||||
@@ -1089,20 +1088,6 @@ nsHTMLDocument::GetBaseURL(nsIURI*& aURL) const
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDocument::SetBaseURL(const nsAReadableString& aURLSpec)
|
||||
{
|
||||
nsresult result = NS_OK;
|
||||
|
||||
NS_IF_RELEASE(mBaseURL);
|
||||
if (0 < aURLSpec.Length()) {
|
||||
{
|
||||
result = NS_NewURI(&mBaseURL, aURLSpec, mDocumentURL);
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsHTMLDocument::GetBaseTarget(nsAWritableString& aTarget) const
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user