question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Malformed HTML because of class_select Trait

See original GitHub issue

Hello, I’m discovering grapesJS and this plugin. I tried collapse and it seems to malform code (div =“show”) and doesn’t collapse:

<h1 class="display-4">Hello!
          </h1>
          <div ="show" class="collapse show">
            <p class="lead">
              <a href="" class="link"></a>This is demo content from 
              <code draggable="true">index.html</code>. For development, you shouldn&#039;t edit this file. Instead, you can copy and rename it to 
              <code draggable="true">_index.html</code>. The next time the server starts, the new file will be served, and it will be ignored by git.
            </p>
          </div>

Or maybe I’m wrong 😃 Please let me know

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
RodriAndreotticommented, Jul 31, 2020

Hey, man! First of all, Thanks for this greate module! If this information helps in any way, when selecting a class, the size of a column in relation to the grid, for example, in addition to the class inside the class attribute, a “phantom attribute” similar to this is also inserted: = “col-lg-9”, maybe the trait is trying to create the class attribute again, wouldn’t that be a possibility?

0reactions
RodriAndreotticommented, Aug 1, 2020

I believe I managed to solve the problem, if I can review the code 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Parse malformed HTML using Dart - Stack Overflow
Try html5lib. It's a spec-compliant html5 parser in pure Dart. You should be able to read in the malformed html, and then use...
Read more >
Striking a Balance Between Native and Custom Select Elements
Here's the plan! We're going to build a styled select element. Not just the outside, but the inside too. Total styling control.
Read more >
CSS Guidelines (2.2.5) – High-level advice and guidelines for ...
High-level advice and guidelines for writing sane, manageable, scalable CSS.
Read more >
CS2830 Web Development I Final Exam study guide - Quizlet
Study with Quizlet and memorize flashcards containing terms like There are three different ways that CSS can be added to HTML based off...
Read more >
Locale disallowed or malformed HTML [#3308382] | Drupal.org
Problem/Motivation Errors occurs on locale update and import is skipped because of disallowed or malformed HTML.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found