bug 272702: Remove skipped content. This simplifies the code handling <script>, <style> and related tags and makes the nsIHTMLContentSink interface just that much easier to implement. This also allows <object> tags to appear in the head with children. r=sicking sr=jst

This commit is contained in:
mrbkap@gmail.com
2005-09-09 18:03:47 +00:00
parent 1a7752c44d
commit 76dfbf78a6
17 changed files with 449 additions and 989 deletions

View File

@@ -74,13 +74,14 @@ nsresult ParseData(char* anInputStream,char* anOutputStream) {
return result;
}
PRFileDesc* in = PR_Open(anInputStream, PR_RDONLY, 777);
PRFileDesc* in = PR_Open(anInputStream, PR_RDONLY, 0777);
if (!in) {
printf("\nUnable to open input file - %s\n", anInputStream);
return result;
}
PRFileDesc* out = PR_Open(anOutputStream, PR_CREATE_FILE|PR_WRONLY, 777);
PRFileDesc* out = PR_Open(anOutputStream,
PR_CREATE_FILE|PR_TRUNCATE|PR_RDWR, 0777);
if (!out) {
printf("\nUnable to open output file - %s\n", anOutputStream);
return result;