Bug: CurrentCodeType gives wrong result if block is empty

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.

  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;

Bug: CurrentCodeType gives wrong result if block is empty

Postby pmk65 » Fri Jul 10, 2015 3:27 pm

Document.CurrentCodeType gives wrong result if codeblock is empty.

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
There are 10 types of people in the world: Those who understand binary and those who don't.
User avatar
pmk65
 
Posts: 387
Joined: Sun Dec 20, 2009 9:58 pm
Location: Copenhagen, Denmark

Return to HTMLPad / Rapid CSS / Rapid PHP / WeBuilder Support

Who is online

Users browsing this forum: Bing [Bot] and 2 guests

cron