Example: If I add this to the HEAD of an HTML document and place the caret inside the style tags.
- Code: Select all
<style type="text/css">
</style>
Then Document.CurrentCodeType gives me the value "1" (ltDefault), which is wrong.
But if I enter a (dummy) character inside the style block and test, then it gives me the correct value "3" (ltCSS)
- Code: Select all
<style type="text/css">
x
</style>
Program used: WeBuilder 2015 v13.2.0.164