Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 179747 Details for
Bug 326422
[validation] Text after HTML style comment in JavaScript region marked as validation error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Fix Patch with JUnits
326422_text_with_html_comment_with_junits.txt (text/plain), 23.25 KB, created by
Ian Tewksbury
on 2010-09-28 10:30:05 EDT
(
hide
)
Description:
Fix Patch with JUnits
Filename:
MIME Type:
Creator:
Ian Tewksbury
Created:
2010-09-28 10:30:05 EDT
Size:
23.25 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.wst.jsdt.web.core >Index: src/org/eclipse/wst/jsdt/web/core/javascript/JsTranslator.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.jsdt.web.core/src/org/eclipse/wst/jsdt/web/core/javascript/JsTranslator.java,v >retrieving revision 1.16.2.2 >diff -u -r1.16.2.2 JsTranslator.java >--- src/org/eclipse/wst/jsdt/web/core/javascript/JsTranslator.java 1 Sep 2010 15:24:45 -0000 1.16.2.2 >+++ src/org/eclipse/wst/jsdt/web/core/javascript/JsTranslator.java 28 Sep 2010 14:28:05 -0000 >@@ -48,9 +48,11 @@ > import org.eclipse.jface.text.IDocumentExtension4; > import org.eclipse.jface.text.IDocumentListener; > import org.eclipse.jface.text.IDocumentRewriteSessionListener; >+import org.eclipse.jface.text.IRegion; > import org.eclipse.jface.text.Position; > import org.eclipse.jface.text.Region; > import org.eclipse.wst.jsdt.core.IBuffer; >+import org.eclipse.wst.jsdt.web.core.internal.Logger; > import org.eclipse.wst.sse.core.StructuredModelManager; > import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument; > import org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocumentRegion; >@@ -513,7 +515,7 @@ > // skip over XML/HTML comment starts > if (regionText.indexOf(XML_COMMENT_START) >= 0) { > int index = regionText.indexOf(XML_COMMENT_START); >- int leadingTrimPlusCommentStart = index + XML_COMMENT_START.length(); >+ > boolean replaceCommentStart = true; > for (int i = 0; i < index; i++) { > /* >@@ -522,11 +524,29 @@ > */ > replaceCommentStart = replaceCommentStart && Character.isWhitespace(regionText.charAt(i)); > } >+ > if (replaceCommentStart) { >+ IRegion line; >+ int end; >+ int length; >+ try { >+ line = container.getParentDocument().getLineInformationOfOffset(index + scriptStart); >+ end = line.getOffset() + line.getLength() - scriptStart; >+ if(end > regionText.length()) { >+ end = regionText.length()-1; >+ } >+ length = end - index; >+ } catch (BadLocationException e) { >+ Logger.logException("Could not get HTML style comment line information", e); //$NON-NLS-1$ >+ >+ end = index + XML_COMMENT_START.length(); >+ length = XML_COMMENT_START.length(); >+ } >+ > StringBuffer newRegionText = new StringBuffer(regionText.substring(0, index)); >- spaces = Util.getPad(XML_COMMENT_START.length()); >+ spaces = Util.getPad(length); > newRegionText.append(spaces); >- newRegionText.append(regionText.substring(leadingTrimPlusCommentStart)); >+ newRegionText.append(regionText.substring(end)); > regionText = newRegionText.toString(); > } > } >#P org.eclipse.wst.jsdt.web.core.tests >Index: src/org/eclipse/wst/jsdt/web/core/tests/translation/TestHtmlTranslation.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/tests/org.eclipse.wst.jsdt.web.core.tests/src/org/eclipse/wst/jsdt/web/core/tests/translation/TestHtmlTranslation.java,v >retrieving revision 1.8 >diff -u -r1.8 TestHtmlTranslation.java >--- src/org/eclipse/wst/jsdt/web/core/tests/translation/TestHtmlTranslation.java 15 Apr 2010 02:49:56 -0000 1.8 >+++ src/org/eclipse/wst/jsdt/web/core/tests/translation/TestHtmlTranslation.java 28 Sep 2010 14:28:06 -0000 >@@ -350,7 +350,7 @@ > public void testMangleMultipleMixedServerSideInJSwithXMLcomment_and_CheckProblems() { > // get model > String fileName = getName() + ".html"; >- IStructuredModel structuredModel = getSharedModel(fileName, "<script> <!-- var text = <? serverObject.getText() ?>; <%=\"a\"%> <%=\"b\"%> <? serverObject.getText() ?><%=\"c\"%> </script>"); >+ IStructuredModel structuredModel = getSharedModel(fileName, "<script> <!-- \nvar text = <? serverObject.getText() ?>; <%=\"a\"%> <%=\"b\"%> <? serverObject.getText() ?><%=\"c\"%> </script>"); > assertNotNull("missing test model", structuredModel); > > // do translation >@@ -358,7 +358,7 @@ > JsTranslationAdapter translationAdapter = (JsTranslationAdapter) ((IDOMModel) structuredModel).getDocument().getAdapterFor(IJsTranslation.class); > IJsTranslation translation = translationAdapter.getJsTranslation(false); > String translated = translation.getJsText(); >- assertEquals("translated contents not as expected", " var text = _$tag_______________________; _$tag___ _$tag___ _$tag________________________$tag___ ",translated); >+ assertEquals("translated contents not as expected", " \nvar text = _$tag_______________________; _$tag___ _$tag___ _$tag________________________$tag___ ",translated); > assertTrue("translation empty", translated.length() > 5); > assertTrue("server-side script block included", translated.indexOf("<?") < 0); > assertTrue("server-side script block included", translated.indexOf("?>") < 0); >@@ -370,6 +370,30 @@ > // release model > structuredModel.releaseFromRead(); > } >+ >+ public void testMangleMultipleMixedServerSideInJSwithXMLcommentOnSameLine() { >+ // get model >+ String fileName = getName() + ".html"; >+ IStructuredModel structuredModel = getSharedModel(fileName, "<script> <!-- var text = <? serverObject.getText() ?>; <%=\"a\"%> <%=\"b\"%> <? serverObject.getText() ?><%=\"c\"%> </script>"); >+ assertNotNull("missing test model", structuredModel); >+ >+ // do translation >+ JsTranslationAdapterFactory.setupAdapterFactory(structuredModel); >+ JsTranslationAdapter translationAdapter = (JsTranslationAdapter) ((IDOMModel) structuredModel).getDocument().getAdapterFor(IJsTranslation.class); >+ IJsTranslation translation = translationAdapter.getJsTranslation(false); >+ String translated = translation.getJsText(); >+ assertEquals("translated contents not as expected", >+ " ",translated); >+ assertTrue("translation empty", translated.length() > 5); >+ assertTrue("server-side script block included", translated.indexOf("<?") < 0); >+ assertTrue("server-side script block included", translated.indexOf("?>") < 0); >+ assertTrue("server-side script block included", translated.indexOf("<%") < 0); >+ assertTrue("server-side script block included", translated.indexOf("%>") < 0); >+ assertTrue("problems found in translation ", translation.getProblems().isEmpty()); >+ >+ // release model >+ structuredModel.releaseFromRead(); >+ } > public void testMangleMultipleMixedServerSideAndClientTagInJS_and_CheckProblems() { > // get model > String fileName = getName() + ".html"; >#P org.eclipse.wst.jsdt.web.ui >Index: src/org/eclipse/wst/jsdt/web/ui/internal/format/FormattingStrategyJSDT.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/plugins/org.eclipse.wst.jsdt.web.ui/src/org/eclipse/wst/jsdt/web/ui/internal/format/FormattingStrategyJSDT.java,v >retrieving revision 1.13.4.1 >diff -u -r1.13.4.1 FormattingStrategyJSDT.java >--- src/org/eclipse/wst/jsdt/web/ui/internal/format/FormattingStrategyJSDT.java 1 Sep 2010 15:24:48 -0000 1.13.4.1 >+++ src/org/eclipse/wst/jsdt/web/ui/internal/format/FormattingStrategyJSDT.java 28 Sep 2010 14:28:08 -0000 >@@ -56,14 +56,8 @@ > * (repeatedly) as the API evolves. > */ > public class FormattingStrategyJSDT extends ContextBasedFormattingStrategy { >- private static final String XML_COMMENT_START = "<!--"; //$NON-NLS-1$ >- private static final String XML_COMMENT_END = "//-->"; //$NON-NLS-1$ >- >- /** matches on <!-- at beginning of script region */ >- private static final Pattern START_PATTERN = Pattern.compile("(\\A(\\s*<!--))"); >- >- /** matches on //--> or --> at end of script region */ >- private static final Pattern END_PATTERN = Pattern.compile("(((//\\s*)?-->\\s*)\\z)"); >+ /** matches on //--> at end of script region */ >+ private static final Pattern END_PATTERN = Pattern.compile("((//.*-->\\s*)\\z)"); > > private static final int regionStartIndentLevel = 1; > /** Documents to be formatted by this strategy */ >@@ -114,17 +108,18 @@ > String postText = lineDelim; > > //find start comment tag >- Matcher matcher = START_PATTERN.matcher(jsTextNotTranslated); >+ Pattern startPattern = Pattern.compile("(\\A(\\s*<!--.*(" + lineDelim + ")?))"); >+ Matcher matcher = startPattern.matcher(jsTextNotTranslated); > if(matcher.find()) { >- jsTextNotTranslated = matcher.replaceAll(""); >- preText = lineDelim + XML_COMMENT_START; >+ jsTextNotTranslated = matcher.replaceFirst(""); >+ preText = lineDelim + matcher.group().trim(); > } > > //find end tag > matcher = END_PATTERN.matcher(jsTextNotTranslated); > if(matcher.find()) { >- jsTextNotTranslated = matcher.replaceAll(""); >- postText = lineDelim + XML_COMMENT_END + lineDelim; >+ jsTextNotTranslated = matcher.replaceFirst(""); >+ postText = lineDelim + matcher.group().trim() + lineDelim; > } > > //replace the text in the document with the none-translated JS text but without HTML leading and trailing comments >#P org.eclipse.wst.jsdt.web.ui.tests >Index: src/org/eclipse/wst/jsdt/web/ui/tests/format/FormattingTests.java >=================================================================== >RCS file: /cvsroot/webtools/sourceediting/tests/org.eclipse.wst.jsdt.web.ui.tests/src/org/eclipse/wst/jsdt/web/ui/tests/format/FormattingTests.java,v >retrieving revision 1.3 >diff -u -r1.3 FormattingTests.java >--- src/org/eclipse/wst/jsdt/web/ui/tests/format/FormattingTests.java 1 Sep 2010 15:37:22 -0000 1.3 >+++ src/org/eclipse/wst/jsdt/web/ui/tests/format/FormattingTests.java 28 Sep 2010 14:28:09 -0000 >@@ -10,7 +10,6 @@ > *******************************************************************************/ > package org.eclipse.wst.jsdt.web.ui.tests.format; > >-import java.io.ByteArrayOutputStream; > import java.io.IOException; > import java.io.UnsupportedEncodingException; > >@@ -23,6 +22,7 @@ > import org.eclipse.core.resources.IProject; > import org.eclipse.core.runtime.CoreException; > import org.eclipse.core.runtime.NullProgressMonitor; >+import org.eclipse.jface.text.IDocument; > import org.eclipse.jface.text.Region; > import org.eclipse.jface.text.formatter.FormattingContext; > import org.eclipse.jface.text.formatter.FormattingContextProperties; >@@ -50,8 +50,6 @@ > * > */ > public class FormattingTests extends TestCase { >- private static final String UTF_8 = "UTF-8"; >- > /** > * The name of the project that all of these tests will use > */ >@@ -67,9 +65,6 @@ > */ > private static IProject fProject; > >- /** the viewer to use during the tests */ >- private static ISourceViewer fViewer; >- > /** > * <p>Default constructor<p> > * <p>Use {@link #suite()}</p> >@@ -145,6 +140,26 @@ > formatAndAssertEquals("test9.html", "test9-fmt.html", new StructuredTextViewerConfigurationJSDT()); > } > >+ public void testFormatHTMLScriptRegionWrappedWithHTMLComment_TextInLeadingComment() throws UnsupportedEncodingException, IOException, CoreException { >+ formatAndAssertEquals("test10.html", "test10-fmt.html", new StructuredTextViewerConfigurationJSDT()); >+ } >+ >+ public void testFormatHTMLScriptRegionWrappedWithHTMLComment_TextInTrailingComment() throws UnsupportedEncodingException, IOException, CoreException { >+ formatAndAssertEquals("test11.html", "test11-fmt.html", new StructuredTextViewerConfigurationJSDT()); >+ } >+ >+ public void testFormatHTMLScriptRegionWrappedWithHTMLComment_TextInLeadingComment_and_TextInTrailingComment() throws UnsupportedEncodingException, IOException, CoreException { >+ formatAndAssertEquals("test12.html", "test12-fmt.html", new StructuredTextViewerConfigurationJSDT()); >+ } >+ >+ public void testFormatHTMLScriptRegion_AllOnOneLine() throws UnsupportedEncodingException, IOException, CoreException { >+ formatAndAssertEquals("test13.html", "test13-fmt.html", new StructuredTextViewerConfigurationJSDT()); >+ } >+ >+ public void testFormatHTMLScriptRegion_AllOnOneLine_LeadingComment() throws UnsupportedEncodingException, IOException, CoreException { >+ formatAndAssertEquals("test14.html", "test14-fmt.html", new StructuredTextViewerConfigurationJSDT()); >+ } >+ > /** > * @param beforePath > * @param afterPath >@@ -172,27 +187,20 @@ > normalizedContents = StringUtils.replace(normalizedContents, "\r", "\n"); > document.set(normalizedContents); > >- //setup dummy viewer >- fViewer.setDocument(document); >- fViewer.configure(configuration); >+ ISourceViewer viewer = getConfiguredViewer(document, configuration); >+ assertNotNull("Could not get viewer to run test", viewer); > > //do the format >- IContentFormatterExtension formatter = (IContentFormatterExtension) configuration.getContentFormatter(fViewer); >+ IContentFormatterExtension formatter = (IContentFormatterExtension) configuration.getContentFormatter(viewer); > IFormattingContext fContext = new FormattingContext(); > Region region = new Region(0, document.getLength()); > fContext.setProperty(FormattingContextProperties.CONTEXT_DOCUMENT, Boolean.valueOf(true)); > fContext.setProperty(FormattingContextProperties.CONTEXT_REGION, region); > formatter.format(document, fContext); > >- //save the models >- ByteArrayOutputStream formattedBytes = new ByteArrayOutputStream(); >- beforeModel.save(formattedBytes); // "beforeModel" should now be after the formatter >- >- ByteArrayOutputStream afterBytes = new ByteArrayOutputStream(); >- afterModel.save(afterBytes); >- >- String expectedContents = new String(afterBytes.toByteArray(), UTF_8); >- String actualContents = new String(formattedBytes.toByteArray(), UTF_8); >+ //get the contents >+ String actualContents = beforeModel.getStructuredDocument().get(); >+ String expectedContents = afterModel.getStructuredDocument().get(); > > /* Make some adjustments to ignore cross platform line delimiter issues */ > expectedContents = StringUtils.replace(expectedContents, "\r\n", "\n"); >@@ -206,10 +214,18 @@ > } > finally { > if (beforeModel != null) { >- beforeModel.releaseFromEdit(); >+ try { >+ beforeModel.releaseFromEdit(); >+ } catch(Exception e) { >+ //ignore >+ } > } > if (afterModel != null) { >- afterModel.releaseFromEdit(); >+ try { >+ afterModel.releaseFromEdit(); >+ } catch(Exception e) { >+ //ignore >+ } > } > } > } >@@ -251,6 +267,31 @@ > } > > /** >+ * @param document {@link IDocument} to display in the dummy viewer >+ * @param configuration {@link SourceViewerConfiguration} to configure the dummy viewer with >+ * @return a configured {@link ISourceViewer} using the given parameters >+ */ >+ private static ISourceViewer getConfiguredViewer(IDocument document, SourceViewerConfiguration configuration) { >+ ISourceViewer viewer = null; >+ assertNotNull("Could not get current display to run test with.", Display.getCurrent()); >+ >+ Shell shell = null; >+ >+ if (PlatformUI.isWorkbenchRunning()) { >+ shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); >+ } >+ else { >+ shell = new Shell(Display.getCurrent()); >+ } >+ Composite parent = new Composite(shell, SWT.NONE); >+ viewer = new StructuredTextViewer(parent, null, null, false, SWT.NONE); >+ viewer.setDocument(document); >+ viewer.configure(configuration); >+ >+ return viewer; >+ } >+ >+ /** > * <p>This inner class is used to do set up and tear down before and > * after (respectively) all tests in the inclosing class have run.</p> > */ >@@ -277,23 +318,6 @@ > fProject = ProjectUtil.createProject(PROJECT_NAME, null, new String[] {JavaScriptCore.NATURE_ID}); > ProjectUtil.copyBundleEntriesIntoWorkspace(PROJECT_FILES, PROJECT_NAME); > >- if (Display.getCurrent() != null) { >- >- Shell shell = null; >- Composite parent = null; >- >- if (PlatformUI.isWorkbenchRunning()) { >- shell = PlatformUI.getWorkbench().getActiveWorkbenchWindow().getShell(); >- } >- else { >- shell = new Shell(Display.getCurrent()); >- } >- parent = new Composite(shell, SWT.NONE); >- >- // dummy viewer >- fViewer = new StructuredTextViewer(parent, null, null, false, SWT.NONE); >- } >- > //set non-interactive > String noninteractive = System.getProperty(WTP_AUTOTEST_NONINTERACTIVE); > if (noninteractive != null) { >Index: testFiles/formatting/test10-fmt.html >=================================================================== >RCS file: testFiles/formatting/test10-fmt.html >diff -N testFiles/formatting/test10-fmt.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test10-fmt.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,16 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript"> >+<!-- this is a test >+ var t = true; >+//--> >+</script> >+ >+</body> >+</html> >\ No newline at end of file >Index: testFiles/formatting/test10.html >=================================================================== >RCS file: testFiles/formatting/test10.html >diff -N testFiles/formatting/test10.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test10.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,16 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript"> >+<!-- this is a test >+var t = true; >+//--> >+</script> >+ >+</body> >+</html> >\ No newline at end of file >Index: testFiles/formatting/test11-fmt.html >=================================================================== >RCS file: testFiles/formatting/test11-fmt.html >diff -N testFiles/formatting/test11-fmt.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test11-fmt.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,16 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript"> >+<!-- >+ var t = true; >+// this is a test --> >+</script> >+ >+</body> >+</html> >\ No newline at end of file >Index: testFiles/formatting/test11.html >=================================================================== >RCS file: testFiles/formatting/test11.html >diff -N testFiles/formatting/test11.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test11.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,16 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript"> >+<!-- >+var t = true; >+// this is a test --> >+</script> >+ >+</body> >+</html> >\ No newline at end of file >Index: testFiles/formatting/test12-fmt.html >=================================================================== >RCS file: testFiles/formatting/test12-fmt.html >diff -N testFiles/formatting/test12-fmt.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test12-fmt.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,16 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript"> >+<!-- this is a test >+ var t = true; >+// this is a test --> >+</script> >+ >+</body> >+</html> >\ No newline at end of file >Index: testFiles/formatting/test12.html >=================================================================== >RCS file: testFiles/formatting/test12.html >diff -N testFiles/formatting/test12.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test12.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,16 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript"> >+<!-- this is a test >+var t = true; >+// this is a test --> >+</script> >+ >+</body> >+</html> >\ No newline at end of file >Index: testFiles/formatting/test13-fmt.html >=================================================================== >RCS file: testFiles/formatting/test13-fmt.html >diff -N testFiles/formatting/test13-fmt.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test13-fmt.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,14 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript"> >+ var t = true; >+</script> >+ >+</body> >+</html> >\ No newline at end of file >Index: testFiles/formatting/test13.html >=================================================================== >RCS file: testFiles/formatting/test13.html >diff -N testFiles/formatting/test13.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test13.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,12 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript">var t = true;</script> >+ >+</body> >+</html> >\ No newline at end of file >Index: testFiles/formatting/test14-fmt.html >=================================================================== >RCS file: testFiles/formatting/test14-fmt.html >diff -N testFiles/formatting/test14-fmt.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test14-fmt.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,15 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript"> >+<!-- var t = true; >+ >+</script> >+ >+</body> >+</html> >\ No newline at end of file >Index: testFiles/formatting/test14.html >=================================================================== >RCS file: testFiles/formatting/test14.html >diff -N testFiles/formatting/test14.html >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ testFiles/formatting/test14.html 1 Jan 1970 00:00:00 -0000 >@@ -0,0 +1,12 @@ >+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> >+<html> >+<head> >+<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> >+<title>Insert title here</title> >+</head> >+<body> >+ >+<script type="text/javascript"><!-- var t = true;</script> >+ >+</body> >+</html> >\ No newline at end of file
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 326422
: 179747