2525using System . Collections . Generic ;
2626using OWASP . AntiSamy . Html . Scan ;
2727using Tag = OWASP . AntiSamy . Html . Model . Tag ;
28+ using Property = OWASP . AntiSamy . Html . Model . Property ;
2829
2930namespace OWASP . AntiSamy . Html
3031{
@@ -40,8 +41,8 @@ public InternalPolicy(ParseContext parseContext) : base(parseContext)
4041 SetProperties ( ) ;
4142 }
4243
43- public InternalPolicy ( Policy old , Dictionary < string , string > directives , Dictionary < string , Tag > tagRules )
44- : base ( old , directives , tagRules )
44+ public InternalPolicy ( Policy old , Dictionary < string , string > directives , Dictionary < string , Tag > tagRules , Dictionary < string , Property > cssRules )
45+ : base ( old , directives , tagRules , cssRules )
4546 {
4647 SetProperties ( ) ;
4748 }
@@ -54,10 +55,8 @@ private void SetProperties()
5455 ValidatesParamAsEmbed = IsTrue ( Constants . VALIDATE_PARAM_AS_EMBED ) ;
5556 FormatsOutput = IsTrue ( Constants . FORMAT_OUTPUT ) ;
5657 PreservesSpace = IsTrue ( Constants . PRESERVE_SPACE ) ;
57- OmitsXmlDeclaration = IsTrue ( Constants . OMIT_XML_DECLARATION ) ;
5858 OmitsDoctypeDeclaration = IsTrue ( Constants . OMIT_DOCTYPE_DECLARATION ) ;
5959 EntityEncodesInternationalCharacters = IsTrue ( Constants . ENTITY_ENCODE_INERNATIONAL_CHARS ) ;
60- UsesXhtml = IsTrue ( Constants . USE_XHTML ) ;
6160 string onUnknownTagActionValue = GetDirectiveByName ( Constants . ON_UNKNOWN_TAG_ACTION ) ;
6261 OnUnknownTagAction = string . IsNullOrEmpty ( onUnknownTagActionValue ) ? string . Empty : onUnknownTagActionValue . ToLowerInvariant ( ) ;
6362 PreservesComments = IsTrue ( Constants . PRESERVE_COMMENTS ) ;
0 commit comments