Masterminds / Masterminds/html5-php

Prevent wrapping in <!DOCTYPE html> <html>

Open
#226 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
HTML
Stars
1.8k
Forks
122
PR merge metrics
No merged PRs in 30d

Description

Any way to prevent the saveHTML method from wrapping the output in ?
inb4 loadHTMLFragment, can't use it since it won't allow to use the getElementsByTagName method.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the saveHTML implementation and compare its behavior with loadHTMLFragment, both named in the issue. Determine how serialization can avoid the added and wrapper while preserving getElementsByTagName usage; done means the requested output is produced without breaking that method.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.