diegoles / closure-library

Automatically exported from code.google.com/p/closure-library
0 stars 0 forks source link

Compiler warnings in htmlsanitizer #595

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
/third_party/closure/goog/caja/string/html/htmlsanitizer.js:539: WARNING - 
Access to private property AMP_RE_ of goog.string.html.HtmlParser not allowed 
here.
  return s.replace(goog.string.html.HtmlParser.AMP_RE_, '&').
                   ^

/third_party/closure/goog/caja/string/html/htmlsanitizer.js:540: WARNING - 
Access to private property LT_RE_ of goog.string.html.HtmlParser not allowed 
here.
      replace(goog.string.html.HtmlParser.LT_RE_, '<').
              ^

/third_party/closure/goog/caja/string/html/htmlsanitizer.js:541: WARNING - 
Access to private property GT_RE_ of goog.string.html.HtmlParser not allowed 
here.
      replace(goog.string.html.HtmlParser.GT_RE_, '>').
              ^

/third_party/closure/goog/caja/string/html/htmlsanitizer.js:542: WARNING - 
Access to private property QUOTE_RE_ of goog.string.html.HtmlParser not allowed 
here.
      replace(goog.string.html.HtmlParser.QUOTE_RE_, '"').
              ^

/third_party/closure/goog/caja/string/html/htmlsanitizer.js:543: WARNING - 
Access to private property EQUALS_RE_ of goog.string.html.HtmlParser not 
allowed here.
      replace(goog.string.html.HtmlParser.EQUALS_RE_, '=');

Original issue reported on code.google.com by pablo.platt@gmail.com on 28 Sep 2013 at 11:11

GoogleCodeExporter commented 8 years ago
Now compiler reports more warnings.

========
JSC_TYPE_MISMATCH: actual parameter 2 of goog.string.html.HtmlSanitizer does 
not match formal parameter
found   : (function (string): string|undefined)
required: (function (string): string|null) at line 75 character 20 in 
htmlsanitizer.js
      stringBuffer, opt_urlPolicy, opt_nmTokenPolicy);
                    ^
JSC_TYPE_MISMATCH: actual parameter 3 of goog.string.html.HtmlSanitizer does 
not match formal parameter
found   : (function (string): string|undefined)
required: (function (string): string|null) at line 75 character 35 in 
htmlsanitizer.js
      stringBuffer, opt_urlPolicy, opt_nmTokenPolicy);
                                   ^
JSC_BAD_PRIVATE_PROPERTY_ACCESS: Access to private property AMP_RE_ of 
goog.string.html.HtmlParser not allowed here. at line 539 character 19 in 
htmlsanitizer.js
  return s.replace(goog.string.html.HtmlParser.AMP_RE_, '&').
                   ^
JSC_BAD_PRIVATE_PROPERTY_ACCESS: Access to private property LT_RE_ of 
goog.string.html.HtmlParser not allowed here. at line 540 character 14 in 
htmlsanitizer.js
      replace(goog.string.html.HtmlParser.LT_RE_, '<').
              ^
JSC_BAD_PRIVATE_PROPERTY_ACCESS: Access to private property GT_RE_ of 
goog.string.html.HtmlParser not allowed here. at line 541 character 14 in 
htmlsanitizer.js
      replace(goog.string.html.HtmlParser.GT_RE_, '>').
              ^
JSC_BAD_PRIVATE_PROPERTY_ACCESS: Access to private property QUOTE_RE_ of 
goog.string.html.HtmlParser not allowed here. at line 542 character 14 in 
htmlsanitizer.js
      replace(goog.string.html.HtmlParser.QUOTE_RE_, '"').
              ^
JSC_BAD_PRIVATE_PROPERTY_ACCESS: Access to private property EQUALS_RE_ of 
goog.string.html.HtmlParser not allowed here. at line 543 character 14 in 
htmlsanitizer.js
      replace(goog.string.html.HtmlParser.EQUALS_RE_, '=');
              ^

Original comment by lv.wh...@gmail.com on 21 Jan 2014 at 8:12