added checkSizePolicies as public method for HtmlElement