Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. MSHTML:IMarkupPointer - Strange behavior with overlapping tags [modified]

MSHTML:IMarkupPointer - Strange behavior with overlapping tags [modified]

Scheduled Pinned Locked Moved Web Development
helpquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Leonhardt Wille
    wrote on last edited by
    #1

    I experienced a strange behavior with overlapping tags. I use the IMarkupServices interface with IMarkupPointer to parse a document and display the "class" attribute of the currently selected <font> tag, if any (just like Winword displays the style of the current selection). When I parse the following code (after selecting the text portion marked green in the view), strange things happen: some text<font class="g3">Normal<font class="g4">Big</font>Normal</font>some other text The IMarkupPointer pHtmlStart starts at the right point, but when it moves on after looping once and successfully retrieving the "class" attribute, pHtmlStart->CurrentScope returns a NULL element and seems to have gotten RIGHT of the pHtmlEnd pointer. Due to this behavior, I cannot retrieve any other elements in the selection, thus I am not able to indicate "there are elements with different CLASS attributes in the selection.". Has anybody experienced something like this? Or is there another solution to the problem? Anybody knows how FrontPage handles this? Or am I doing something totally wrong? If anybody is interested I will post some code here to evaluate the behavior. Thanks for reading. -- modified at 3:18 Friday 7th July, 2006

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups