Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP] Allow use of custom HTML-Tags #8313

Open
NReib opened this issue Mar 11, 2025 · 0 comments · May be fixed by #8315
Open

[PHP] Allow use of custom HTML-Tags #8313

NReib opened this issue Mar 11, 2025 · 0 comments · May be fixed by #8315
Labels
HTML [ci] enable web job kind:feature A feature request needs:triage Requires attention from one of the committers PHP [ci] enable extra PHP tests (php/php.editor)

Comments

@NReib
Copy link
Contributor

NReib commented Mar 11, 2025

Description

Custom tags defined in customs.json should be useable in PHP-mimetype.

customs.json

{
	"elements": {
		"y-customdefined": {
			"attributes": {
				"exists": {}
			}
		}
	},
	"attributes": {"globaldefined": {}}
}

PHP script including custom tags, so far none of the tags defined in customs.json will be valid

<x-customnotdefined><?php echo 'test'; ?></x-customnotdefined>
<y-customdefined exists="" noexists=""><?php echo 'test'; ?></y-customdefined>
<y-customdefined exists=""></y-customdefined> 
<y-customdefined globaldefined=""></y-customdefined> 
<y-customdefined noexists=""><?php echo 'test'; ?></y-customdefined> 

Use case/motivation

No response

Related issues

No response

Are you willing to submit a pull request?

Yes

@NReib NReib added kind:feature A feature request needs:triage Requires attention from one of the committers labels Mar 11, 2025
NReib added a commit to NReib/netbeans that referenced this issue Mar 11, 2025
-register CustomHtmlExtension to x-php5 mimeType
-UnknownAttribute hint used to be at wrong position in source when
embedded in PHP

Example:
customs.json
```json
{
	"elements": {
		"y-customdefined": {
			"attributes": {
				"exists": {}
			}
		}
	},
	"attributes": {"globaldefined": {}}
}
```

PHP script including custom tags, so far none of the tags defined in customs.json will be valid
```php
<x-customnotdefined><?php echo 'test'; ?></x-customnotdefined>
<y-customdefined exists="" noexists=""><?php echo 'test'; ?></y-customdefined>
<y-customdefined exists=""></y-customdefined>
<y-customdefined globaldefined=""></y-customdefined>
<y-customdefined noexists=""><?php echo 'test'; ?></y-customdefined>

```
NReib added a commit to NReib/netbeans that referenced this issue Mar 11, 2025
-register CustomHtmlExtension to x-php5 mimeType
-UnknownAttribute hint used to be at wrong position in source when
embedded in PHP

Example:
customs.json
```json
{
	"elements": {
		"y-customdefined": {
			"attributes": {
				"exists": {}
			}
		}
	},
	"attributes": {"globaldefined": {}}
}
```

PHP script including custom tags, so far none of the tags defined in customs.json will be valid
```php
<x-customnotdefined><?php echo 'test'; ?></x-customnotdefined>
<y-customdefined exists="" noexists=""><?php echo 'test'; ?></y-customdefined>
<y-customdefined exists=""></y-customdefined>
<y-customdefined globaldefined=""></y-customdefined>
<y-customdefined noexists=""><?php echo 'test'; ?></y-customdefined>

```
@mbien mbien added PHP [ci] enable extra PHP tests (php/php.editor) HTML [ci] enable web job labels Mar 11, 2025
@mbien mbien linked a pull request Mar 11, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
HTML [ci] enable web job kind:feature A feature request needs:triage Requires attention from one of the committers PHP [ci] enable extra PHP tests (php/php.editor)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants