Allow <link> to be opened, even as the direct child of a <table>. bug 436722, r+sr=sicking a=ss

This commit is contained in:
mrbkap%gmail.com 2008-08-11 18:31:40 +00:00
Родитель 3722a502c3
Коммит f3f334dd25
2 изменённых файлов: 32 добавлений и 2 удалений

Просмотреть файл

@ -791,7 +791,7 @@ const nsHTMLElement gHTMLElements[] = {
/*rootnodes,endrootnodes*/ &gInHead,&gInHead,
/*autoclose starttags and endtags*/ 0,0,0,0,
/*parent,incl,exclgroups*/ kAllTags - kHeadContent, kNone, kNone,
/*special props, prop-range*/ kNonContainer|kPreferHead,kDefaultPropRange,
/*special props, prop-range*/ kNonContainer|kPreferHead|kLegalOpen,kDefaultPropRange,
/*special parents,kids,skip*/ &gInHead,0,eHTMLTag_unknown,
/*contain-func*/ 0
},
@ -1089,7 +1089,7 @@ const nsHTMLElement gHTMLElements[] = {
/*rootnodes,endrootnodes*/ &gRootTags,&gRootTags,
/*autoclose starttags and endtags*/ 0,0,0,0,
/*parent,incl,exclgroups*/ kAllTags - kHeadContent, kCDATA, kNone,
/*special props, prop-range*/ kNoStyleLeaksIn|kPreferHead, kNoPropRange,
/*special props, prop-range*/ kNoStyleLeaksIn|kPreferHead|kLegalOpen, kNoPropRange,
/*special parents,kids,skip*/ 0,0,eHTMLTag_unknown,
/*contain-func*/ 0
},

Просмотреть файл

@ -393,3 +393,33 @@ x { content:"</style" } "
| <input>
| type=" hidden"
#data
<!DOCTYPE html><html><body><table><link><tr><td>Hi!</td></tr></table></html>
#errors
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <table>
| <link>
| <tbody>
| <tr>
| <td>
| "Hi!"
#data
<!DOCTYPE html><html><body><table><style>td { color: green }</style><tr><td>Hi!</tr></td></table>
#errors
#document
| <!DOCTYPE HTML>
| <html>
| <head>
| <body>
| <table>
| <style>
| "td { color: green }"
| <tbody>
| <tr>
| <td>
| "Hi!"