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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user