Giter VIP home page Giter VIP logo

Comments (5)

therealglazou avatar therealglazou commented on May 28, 2024

Is that a html5 document? In html5, CDATA sections can only be used inside foreign elements (mathml, svg, etc).

from bluegriffon.

garretwilson avatar garretwilson commented on May 28, 2024

In html5, CDATA sections can only be used inside foreign elements (mathml, svg, etc).

Ah, you're right. Good to know:

https://www.w3.org/TR/html5/syntax.html#cdata-sections

But look, I don't want to use CDATA. I want to use regular old XML. I'm only using CDATA to get around this horrible, blocker bug #10.

from bluegriffon.

therealglazou avatar therealglazou commented on May 28, 2024

The bug occurs only in XHTML documents ; use html and you'll be fine.

from bluegriffon.

garretwilson avatar garretwilson commented on May 28, 2024

I could use Markdown and be fine, too!!

I want to use XHTML5. Why does everybody have a freakin' problem with that?

from bluegriffon.

garretwilson avatar garretwilson commented on May 28, 2024

The bug occurs only in XHTML documents ; use html and you'll be fine.

This is not true! You're trying to make excuses for a fundamental broken component of BlueGriffon, and your workaround won't work.

Forget XHTML. Let's say I have the following HTML source code, exactly as HTML5 requests for source code. I enter it into the source code view of BG:

<pre><code>public class FooBar {

  /** Does Foo.
   * &lt;p&gt;Does Bar too!&lt;/p&gt;
   */
  public void doFoo() {
    do {
      <mark>foo();</mark>
   } while(bar());
}</code></pre>

Note two things:

  1. I have used character references &lt; and &gt; because I want <p> to appear in the output and not be recognized as an actual HTML <p> tag.
  2. I have not used character references for <mark> because I want the HTML renderer to recognize this element as a child element of <code>---that is, to actually highlight the section in question.

In BG I then switch to WYSIWYG view. Then I switch back to source code view. BlueGriffon changes my code to this:

<pre><code>public class FooBar {

  /** Does Foo.
   * <p>Does Bar too!</p>
   */
  public void doFoo() {
    do {
      <mark>foo();</mark>
   } while(bar());
}</code></pre>

This has completely different semantics! Now in the rendered page I have a paragraph in the middle of my source code, which is not what I wanted nor what I entered.

This is 100% broken. BlueGriffon corrupts my content. This is a blocker issue. Why isn't it being fixed for BG 1.8 in Bug #10?

from bluegriffon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.